共用方式為


(Project) 的 Application.FilePageSetupMargins 方法

會設定列印邊界。

語法

expressionFilePageSetupMargins( _Name_, _Top_, _Bottom_, _Left_, _Right_, _Borders_ )

expression 代表 Application 物件的變數。

參數

名稱 必要/選用 資料類型 描述
Name 選用 String 要設定列印邊界的檢視或報表名稱。
Top 選用 Long 上邊界大小,以英吋或公分為單位。
Bottom 選用 Long 下邊界大小,以英吋或公分為單位。
Left 選用 Long 左邊界大小,以英吋或公分為單位。
Right 選用 Long 右邊界大小,以英吋或公分為單位。
Borders 選用 Long 列印框線的位置。 可以是下列 PjBorder 常數之一: pjNoBorderpjAroundEveryPagepjOutsidePages

傳回值

布林值

註解

Using the FilePageSetupMargins method without specifying any arguments displays the Page Setup dialog box with the Margins tab selected.

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應