ウィンドウのタイトル(Window.Caption プロパティ)
2016/01/12
ウィンドウのタイトル(Caption プロパティ)
Windows.Caption プロパティで、ウィンドウのタイトルバーに表示される名前を取得および設定することができます。この Caption プロパティ の値は、Windows プロパティ のインデックスとしても使用することができます
<取得>
object.Caption
<設定>
object.Caption = string
引数・戻り値
- object ・・・ 対象となる Window オブジェクトを指定します。
- string ・・・ ウィンドウのタイトルバーに表示されるタイトルを指定します。既定値はブック名です。
Windows.Caption プロパティ で、ウィンドウのタイトル名を設定することは可能ですが保存はできません。また、ブック名には影響しません。
Window.Caption プロパティ 使用例
サンプルVBAソース
|
1 2 3 4 5 6 7 8 |
Sub Sample_WindowCaption() 'ウィンドウのタイトルバーの表示を「MyWorkBook」に設定 ActiveWindow.Caption = "MyWorkBook" End Sub |
実行結果
関連記事
-
-
スクロール(LargeScroll メソッド、Smallscroll メソッド)
ワークシートをスクロールする ワークシートをスクロールするには、LargeScr …
-
-
印刷設定(フッターに画像を指定)LeftFooterPicture,CenterFooterPicture,RightFooterPicture
フッターに画像を表示するには LeftFooterPicture プロパティ、C …
-
-
アクティブプリンタを変更(ActivePrinter プロパティ)
ActivePrinter プロパティ ActivePrinter プロパティを …
-
-
ブックのプロパティ(BuiltinDocumentProperties プロパティ)
BuiltinDocumentProperties プロパティ ブックのプロパテ …
-
-
印刷品質を設定(PageSetup.PrintQuality プロパティ)
PageSetup.PrintQuality プロパティ PageSetup.P …
-
-
セルのコメントを印刷(PageSetup.PrintComments プロパティ)
PageSetup.PrintComments プロパティ PageSetup. …
-
-
Excel を全画面表示(DisplayFullScreen プロパティ)
DisplayFullScreen プロパティ DisplayFullScree …
-
-
シートを保護・保護したシートを解除する(Protect メソッド・Unprotect メソッド)
Protect メソッド・Unprotect メソッド Protect メソッド …
-
-
並べて比較(CompareSideBySideWith,SyncScrollingSideBySide,BreakSideBySide)
並べて比較(CompareSideBySideWith メソッド) Compar …
-
-
別のブックのマクロを実行(Run メソッド)
別のブックのマクロを実行 別のブックのマクロを実行するには、Run メソッド を …
