行列の見出しの表示・非表示(DisplayHeadings プロパティ)
DisplayHeadings プロパティ
行と列の見出しの表示・非表示を設定および取得をします。
【書式】
<取得>
object.DisplayHeadings
<設定>
object.DisplayHeadings = boolean
引数・戻り値
- object ・・・ 対象となる Window オブジェクトを指定します。
- boolean ・・・ ブール型(Boolean)の値を指定します。行列の両方の見出しを表示する場合は、True を、見出しを非表示にする場合は、False を指定します。
行列番号の印刷を制御するには、PrintHeadings プロパティを使用します。
DisplayHeadings プロパティ 使用例
サンプルVBAソース
|
1 2 3 4 5 6 7 8 9 10 11 |
Sub Sample_DisplayHeadings() Dim w As Window Set w = ActiveWindow w.DisplayHeadings = False End Sub |
実行結果
「サンプルVBAソース」実行後のワークシート
関連記事
-
-
ウィンドウの位置を入れ替える(ActivatePrevious メソッド、ActivateNext メソッド)
ウィンドウの位置を入れ替える ActivatePrevious メソッド、Act …
-
-
印刷:余白を設定 TopMargin,BottomMargin,LeftMargin,RightMargin,HeaderMargin,FooterMargin
余白を設定する 余白を設定する単位は、pt(ポイント:約 0.03528 cm) …
-
-
ワークシートの数を数える(Count プロパティ)
Count プロパティ 指定したWorksheets コレクションやSheets …
-
-
ユーザー設定のビュー(CustomView オブジェクト)
ユーザー設定のビュー CustomView オブジェクトは、登録されている各ビュ …
-
-
印刷位置を中央に設定(CenterHorizontally, CenterVertically)
PageSetup.CenterHorizontally プロパティ PageS …
-
-
ブックを保存する(Save メソッド)
ブックを保存する(Save メソッド) 既存のブックを上書き保存するには、Sav …
-
-
選択されているシートを参照する(SelectedSheets プロパティ)
SelectedSheets プロパティ 選択されているすべてのシートをあらわす …
-
-
印刷のタイトル行、タイトル列を設定(PrintTitleRows,PrintTitleColumns)
PageSetup.PrintTitleRows プロパティ PageSetup …
-
-
枠線を含めて印刷(PageSetup.PrintGridlines プロパティ)
PageSetup.PrintGridlines プロパティ PageSetup …
-
-
印刷・印刷プレビュー(PrintOut メソッド、PrintPreview メソッド)
PrintOut メソッド 印刷するには、PrintOut メソッド を使用しま …
