0 を表示するかどうかを設定(DisplayZeros プロパティ)
2016/01/12
DisplayZeros プロパティ
DisplayZeros プロパティに、True を設定するとセルに入力された「0」は、表示されます。False を設定すると「0」は非表示になります(数式バーには表示されます)。
<取得>
object.DisplayZeros
<設定>
object.DisplayZeros = boolean
引数・戻り値
- object ・・・ 対象となる Window オブジェクトを指定します。
- boolean ・・・ セルにゼロ値を表示するには、True(既定値)を、非表示にするには、False を指定します。
DisplayZeros プロパティ 使用例
サンプルVBAソース
|
1 2 3 4 5 6 7 8 |
Sub Sample_DisplayZeros() 'セルのゼロ値を非表示にする ActiveWindow.DisplayZeros = False End Sub |
実行結果
サンプルVBAソース 実行前
実行後
関連記事
-
-
ワークシートをアクティブにする・選択する(Activate, Select)
Activate メソッド・Select メソッド Activate メソッドは …
-
-
印刷設定(ヘッダーに画像を指定)LeftHeaderPicture, CenterHeaderPicture, RightHeaderPicture
ヘッダーに画像を表示するには LeftHeaderPicture プロパティ、C …
-
-
ウィンドウのタイトル(Window.Caption プロパティ)
ウィンドウのタイトル(Caption プロパティ) Windows.Captio …
-
-
印刷品質を設定(PageSetup.PrintQuality プロパティ)
PageSetup.PrintQuality プロパティ PageSetup.P …
-
-
ブック・シートの名前を取得・設定(Name プロパティ)
ワークブックの名前を取得 Name プロパティで、ワークブックの名前を取得します …
-
-
ワークシートの数を数える(Count プロパティ)
Count プロパティ 指定したWorksheets コレクションやSheets …
-
-
数式バーの設定(DisplayFormulaBar, FormulaBarHeight)
数式バーの設定 数式バーの表示・非表示の設定を行うには、DisplayFormu …
-
-
印刷する用紙の向きを設定(PageSetup.Orientation プロパティ)
PageSetup.Orientation プロパティ PageSetup.Or …
-
-
WorksheetView オブジェクト
WorkSheetView オブジェクト 行列番号や枠線の表示・非表示の設定など …
-
-
ワークシートをファイルに保存する(SaveAs メソッド)
SaveAs メソッド ワークシートを名前を付けてファイルに保存します。Work …

