印刷のページ区切り(DisplayPageBreaks プロパティ)
DisplayPageBreaks プロパティ
印刷したあとや印刷プレビューを表示後に、ページの区切り位置を表す実線または点線(ページ区切り線)が表示されます。DisplayPageBreaks プロパティで、このページ区切り線の表示(True)・非表示(False)の設定および取得が可能です。ブール型(Boolean)の値を使用します。
<取得>
object.DisplayPageBreaks
<設定>
object.DisplayPageBreaks = boolean
引数・戻り値
- object ・・・ 対象となる Worksheet オブジェクト を指定します。
- boolean ・・・ ページ区切りを表示する場合は、True を、非表示にするには、False を指定します。
DisplayPageBreaks プロパティ 使用例 1
サンプルVBAソース
|
1 2 3 4 5 6 7 |
Sub Sample01_DisplayPageBreaks() ActiveSheet.DisplayPageBreaks = False End Sub |
実行結果
DisplayPageBreaks プロパティ 使用例 2
サンプルVBAソース
|
1 2 3 4 5 6 7 |
Sub Sample02_DisplayPageBreaks() ActiveSheet.DisplayPageBreaks = True End Sub |
実行結果
関連記事
-
-
印刷設定(ヘッダー・フッターに画像を設定)Graphic オブジェクト
Graphic オブジェクト Graphic オブジェクト は、ヘッダーおよびフ …
-
-
Excel を全画面表示(DisplayFullScreen プロパティ)
DisplayFullScreen プロパティ DisplayFullScree …
-
-
アウトライン記号の表示・非表示(DisplayOutline プロパティ)
アウトライン記号の表示・非表示(DisplayOutline プロパティ) Di …
-
-
ユーザー設定のビュー(CustomView オブジェクト)
ユーザー設定のビュー CustomView オブジェクトは、登録されている各ビュ …
-
-
画面の上端・左端を設定(ScrollRow プロパティ、ScrollColumn プロパティ)
画面の上端・左端を設定 ScrollRow プロパティで、指定した行を画面上端に …
-
-
印刷:余白を設定 TopMargin,BottomMargin,LeftMargin,RightMargin,HeaderMargin,FooterMargin
余白を設定する 余白を設定する単位は、pt(ポイント:約 0.03528 cm) …
-
-
ブックのパスを取得(FullName プロパティ,Path プロパティ)
FullName プロパティ・Path プロパティ ブックのパス(保存場所)を調 …
-
-
選択されているシートを参照する(SelectedSheets プロパティ)
SelectedSheets プロパティ 選択されているすべてのシートをあらわす …
-
-
印刷設定(フッターに文字列を指定)LeftFooter,CenterFooter,RightFooter
PageSetup.LeftFooter プロパティ PageSetup.Lef …
-
-
印刷設定を高速化(PrintCommunication プロパティ)
PrintCommunication プロパティ PrintCommunicat …

