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 |
実行結果
関連記事
-
-
ウィンドウを整列(Windows.Arrange メソッド)
ウィンドウを整列(Windows.Arrange メソッド) Windows コ …
-
-
ブックを保存する(Save メソッド)
ブックを保存する(Save メソッド) 既存のブックを上書き保存するには、Sav …
-
-
アクティブプリンタを変更(ActivePrinter プロパティ)
ActivePrinter プロパティ ActivePrinter プロパティを …
-
-
印刷のタイトル行、タイトル列を設定(PrintTitleRows,PrintTitleColumns)
PageSetup.PrintTitleRows プロパティ PageSetup …
-
-
共有ファイルを開いているユーザー情報を取得(UserStatus プロパティ)
共有ファイルを開いているユーザー情報を取得 UserStatus プロパティは、 …
-
-
印刷設定(フッターに文字列を指定)LeftFooter,CenterFooter,RightFooter
PageSetup.LeftFooter プロパティ PageSetup.Lef …
-
-
ウィンドウを拡大・縮小(Zoom プロパティ)
ウィンドウを拡大・縮小(Zoom プロパティ) ウィンドウの表示サイズをパーセン …
-
-
印刷時の改ページ設定(Add,ResetAllPageBreaks)
改ページの追加と解除 印刷時に改ページを指定するには、HPageBreaks コ …
-
-
ユーザー設定のドキュメントプロパティ(CustomDocumentProperties プロパティ)
CustomDocumentProperties プロパティ ユーザー設定のドキ …
-
-
ステータスバーにメッセージを表示(StatusBar プロパティ)
StatusBar プロパティ StatusBar プロパティで、ステータスバー …
