Application.UsableWidth プロパティ (Word)

Microsoft Word 文書ウィンドウの幅を設定できる最大幅 (ポイント単位) を返します。 取得のみ可能な Long 値です。

構文

UsableWidth

expressionApplication オブジェクトを 表す変数。

次の使用例は、作業中の文書ウィンドウのサイズを最大限使用できる画面領域の 4 分の 1 に設定します。

With ActiveDocument.ActiveWindow 
 .WindowState = wdWindowStateNormal 
 .Top = 5 
 .Left = 5 
 .Height = (Application.UsableHeight*0.5) 
 .Width = (Application.UsableWidth*0.5) 
End With

次の使用例は、作業中の文書ウィンドウの作業領域のサイズを表示します。

With ActiveDocument.ActiveWindow 
 MsgBox "Working area height = " _ 
 & .UsableHeight & vbLf _ 
 & "Working area width = " _ 
 & .UsableWidth 
End With

関連項目

Application オブジェクト

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。