ExcelWork.info

Excel(エクセル)のマクロ・VBA・関数・操作などのメモ

白黒印刷(PageSetup.BlackAndWhite プロパティ)

   

PageSetup.BlackAndWhite プロパティ

PageSetup.BlackAndWhite プロパティTrue に設定すると白黒で印刷します。値の取得および設定が可能です。


【書式】

<取得>
object.PageSetup.BlackAndWhite

<設定>
object.PageSetup.BlackAndWhite = boolean


引数・戻り値

  • object  ・・・  対象となる Worksheet オブジェクト を指定します。
  • boolean  ・・・  True に設定すると対象となるオブジェクト( object )を白黒で印刷します。


PageSetup.BlackAndWhite プロパティ 使用例

サンプルVBAソース


実行結果

サンプルVBAソース 実行前

PageSetup.BlackAndWhite プロパティ 使用例 1

実行後

PageSetup.BlackAndWhite プロパティ 使用例 2



 - ブック・シートの操作 , , , , , ,

Message

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

  関連記事

SheetsInNewWorkbook プロパティ 使用例
ブック作成時のシート数の取得・設定(SheetsInNewWorkbook プロパティ)

SheetsInNewWorkbook プロパティ Excel で新規ブックに自 …

アクティブプリンタの設定・取得
アクティブプリンタを変更(ActivePrinter プロパティ)

ActivePrinter プロパティ ActivePrinter プロパティを …

ブックを閉じる(Close メソッド)

ブックを閉じる(Close メソッド) Close メソッド で、ブックを閉じる …

ウィンドウを拡大・縮小(Zoom プロパティ)

ウィンドウを拡大・縮小(Zoom プロパティ) ウィンドウの表示サイズをパーセン …

数式を表示(DisplayFormulas プロパティ)

数式を表示(DisplayFormulas プロパティ) セルに数式が入力されて …

Copy メソッド Move メソッド 使用例
ワークシートのコピー・移動(Copy メソッド Move メソッド)

Copy メソッド Copy メソッドで、指定した位置にワークシートの複製を作成 …

ウィンドウのタイトル(Window.Caption プロパティ)

ウィンドウのタイトル(Caption プロパティ) Windows.Captio …

CustomDocumentProperties プロパティ
ユーザー設定のドキュメントプロパティ(CustomDocumentProperties プロパティ)

CustomDocumentProperties プロパティ ユーザー設定のドキ …

Window.Caption
並べて比較(CompareSideBySideWith,SyncScrollingSideBySide,BreakSideBySide)

並べて比較(CompareSideBySideWith メソッド) Compar …

背景に画像を表示(SetBackgroundPicture メソッド)

SetBackgroundPicture メソッド SetBackgroundP …