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ソース 実行前
実行後
関連記事
-
-
ウィンドウのタイトル(Window.Caption プロパティ)
ウィンドウのタイトル(Caption プロパティ) Windows.Captio …
-
-
印刷する用紙の向きを設定(PageSetup.Orientation プロパティ)
PageSetup.Orientation プロパティ PageSetup.Or …
-
-
数式を表示(DisplayFormulas プロパティ)
数式を表示(DisplayFormulas プロパティ) セルに数式が入力されて …
-
-
印刷時のページの番号付けの方向を設定(PageSetup.Order プロパティ)
PageSetup.Order プロパティ PageSetup.Order プロ …
-
-
印刷のタイトル行、タイトル列を設定(PrintTitleRows,PrintTitleColumns)
PageSetup.PrintTitleRows プロパティ PageSetup …
-
-
白黒印刷(PageSetup.BlackAndWhite プロパティ)
PageSetup.BlackAndWhite プロパティ PageSetup. …
-
-
簡易印刷(PageSetup.Draft プロパティ)
PageSetup.Draft プロパティ PageSetup.Draft プロ …
-
-
ワークシートをアクティブにする・選択する(Activate, Select)
Activate メソッド・Select メソッド Activate メソッドは …
-
-
ウィンドウ枠の固定(FreezePanes プロパティ、SplitColumn プロパティ,SplitRow プロパティ)
ウィンドウ枠の固定と解除 ウィンドウ枠を固定するには FreezePanes プ …
-
-
印刷設定(フッターに画像を指定)LeftFooterPicture,CenterFooterPicture,RightFooterPicture
フッターに画像を表示するには LeftFooterPicture プロパティ、C …