Application.FilePageSetupPage method (Project)

Sets up pages for printing.

Syntax

expression. FilePageSetupPage( _Name_, _Portrait_, _PercentScale_, _PagesTall_, _PagesWide_, _PaperSize_, _FirstPageNumber_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Name Optional String The name of the view or report for which to set up pages for printing.
Portrait Optional Boolean True if the page orientation is portrait. False if the page orientation is landscape.
PercentScale Optional Integer The scaling factor, specified as a percentage of the original. Can be a number between 1 and 500.
PagesTall Optional Integer The height the printed project should be fit to, in pages. The PagesTall argument is ignored if PercentScale is specified.
PagesWide Optional Variant The width the printed project should be fit to, in pages. The PagesWide argument is ignored if PercentScale is specified.
PaperSize Optional Long The size of the paper to be used when printing. (Some printers may not support all of these paper sizes.) Can be one of the PjPaperSize constants.
FirstPageNumber Optional String Any valid integer to print on the first page or the string "Auto" to print the actual number of the first printed page. (For example, "3" if the first printed page is page 3.) Succeeding page numbers are incremented on this number. The default value is "Auto".

Return value

Boolean

Remarks

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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.