Excel を全画面表示(DisplayFullScreen プロパティ)
DisplayFullScreen プロパティ
DisplayFullScreen プロパティに、True を指定すると、Excel は、全画面表示になります。
<取得>
object.DisplayFullScreen
<設定>
object.DisplayFullScreen = boolean
引数・戻り値
- object ・・・ 対象となる Application オブジェクトを指定します。
- boolean ・・・ Excel のウィンドウを全画面表示にする場合、Treu を指定します。しない場合は、False を指定します。
Excel 2013 の場合、
Application.DisplayFullScreen = True
Application.WindowState = xlMaximized
いずれの場合も、Excel ウィンドウが全画面表示されます。
WindowState プロパティ に関しては、ウィンドウの状態を取得・設定(WindowState プロパティ) を参照してください。
DisplayFullScreen プロパティ 使用例
サンプルVBAソース
|
1 2 3 4 5 6 7 8 |
Sub Sample_DisplayFullScreen() 'Excelを全画面表示 Application.DisplayFullScreen = True End Sub |
実行結果
関連記事
-
-
印刷設定(ヘッダーに画像を指定)LeftHeaderPicture, CenterHeaderPicture, RightHeaderPicture
ヘッダーに画像を表示するには LeftHeaderPicture プロパティ、C …
-
-
ステータスバーにメッセージを表示(StatusBar プロパティ)
StatusBar プロパティ StatusBar プロパティで、ステータスバー …
-
-
白黒印刷(PageSetup.BlackAndWhite プロパティ)
PageSetup.BlackAndWhite プロパティ PageSetup. …
-
-
イベントの発生・無効をコントロール(EnableEvents プロパティ)
EnableEvents プロパティ EnableEvents プロパティに T …
-
-
ブックを別名で保存(SaveAs メソッド)
ブックを別名で保存(SaveAs メソッド) ブックの変更を保存したり、新規ブッ …
-
-
アクティブプリンタを変更(ActivePrinter プロパティ)
ActivePrinter プロパティ ActivePrinter プロパティを …
-
-
ユーザー設定のビュー(CustomView オブジェクト)
ユーザー設定のビュー CustomView オブジェクトは、登録されている各ビュ …
-
-
印刷設定(フッターに画像を指定)LeftFooterPicture,CenterFooterPicture,RightFooterPicture
フッターに画像を表示するには LeftFooterPicture プロパティ、C …
-
-
ワークシートの非表示・再表示(Visible プロパティ)
ワークシートの表示・非表示 ワークシートを非表示にしたり、非表示にしたワークシー …
-
-
ウィンドウの位置を入れ替える(ActivatePrevious メソッド、ActivateNext メソッド)
ウィンドウの位置を入れ替える ActivatePrevious メソッド、Act …
