ExcelWork.info

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

枠線を含めて印刷(PageSetup.PrintGridlines プロパティ)

   

PageSetup.PrintGridlines プロパティ

PageSetup.PrintGridlines プロパティ に True を設定すると、セルの枠線を含めて印刷することができます。値の取得および設定が可能で、ブール型(Boolean)の値を使用します。


【書式】

<取得>
object.PageSetup.PrintGridlines

<設定>
object.PageSetup.PrintGridlines = boolean


引数・戻り値

  • object  ・・・  対象となる Worksheet オブジェクト を指定します。
  • boolean  ・・・  True を設定するとセルの枠線を印刷します。


PageSetup.PrintGridlines プロパティ 使用例

サンプルVBAソース


実行結果

PageSetup.PrintGridlines プロパティ 使用例



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

Message

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

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

  関連記事

Name プロパティ 使用例 1
ブック・シートの名前を取得・設定(Name プロパティ)

ワークブックの名前を取得 Name プロパティで、ワークブックの名前を取得します …

スクロールバーの表示・非表示(DisplayHorizontalScrollBar,DisplayVerticalScrollBar)

スクロールバーの表示・非表示の設定 Windows オブジェクト の Displ …

ウィンドウを整列(Windows.Arrange メソッド)

ウィンドウを整列(Windows.Arrange メソッド) Windows コ …

ブックのパスを取得(FullName プロパティ,Path プロパティ)

FullName プロパティ・Path プロパティ ブックのパス(保存場所)を調 …

ウィンドウの分割(Split プロパティ,SplitColumn プロパティ,SplitRow プロパティ)

ウィンドウの分割と解除 ウィンドウ(ワークシート画面)を分割するには、Split …

RemoveDocumentInformation メソッド
指定された情報をブックから削除(RemoveDocumentInformation メソッド)

RemoveDocumentInformation メソッド 指定された種類の情 …

印刷設定(フッターに文字列を指定)LeftFooter,CenterFooter,RightFooter

PageSetup.LeftFooter プロパティ PageSetup.Lef …

ステータスバーにメッセージを表示(StatusBar プロパティ)

StatusBar プロパティ StatusBar プロパティで、ステータスバー …

PrintCommunication プロパティ 使用例
印刷設定を高速化(PrintCommunication プロパティ)

PrintCommunication プロパティ PrintCommunicat …

Excel8CompatibilityMode プロパティ
ブックが互換モードで開いているか確認する(Excel8CompatibilityMode プロパティ)

ブックが互換モードで開いているか確認する Excel8Compatibility …