Application.Height プロパティ (Project)

メイン ウィンドウの高さをポイント単位で取得または設定します。 読み取り/書き込みが可能な Long です。

構文

高さ

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

注釈

ウィンドウの高さは、ウィンドウの下端を上下に移動して変更されます。ウィンドウの上端の位置は変更されません。

次の使用例は、アプリケーション ウィンドウを画面の下半分に表示します。

Sub PlaceProjectInLowerScreenHalf() 
 
 Dim WindowWidth As Double 
 
 Application.WindowState = pjMaximized 
 WindowWidth = Application.Width 'Remember the width when maximized. 
 
 Application.Height = Application.Height / 2 
 Application.Top = Application.Height 
 
 'Ensure that the window uses all the available width. 
 If Application.Width < WindowWidth Then 
 Application.Width = WindowWidth 
 Application.Left = 0 
 End If 
 
End Sub

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

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