Application.FilePageSetupView method (Project)

Sets up view-specific options for printing.

Syntax

expression. FilePageSetupView( _Name_, _AllSheetColumns_, _RepeatColumns_, _PrintNotes_, _PrintBlankPages_, _BestPageFitTimescale_, _PrintColumnTotals_, _PrintRowTotals_ )

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.
AllSheetColumns Optional Boolean True if all table columns print. False if only visible table columns print. This argument is only available when the Task Usage view, Resource Usage view, or one of the Gantt views is the active view.
RepeatColumns Optional Integer The number of table columns to print on each page. This argument is only available when the Task Sheet, Task Usage view, Resource Sheet, Resource Usage view, or one of the Gantt views is the active view.
PrintNotes Optional Boolean True if notes print. If the active view is the Resource Graph, PrintNotes is ignored.
PrintBlankPages Optional Boolean True if blank pages print. This argument is only available when the Task Usage view, Resource Usage view, Network Diagram view, or one of the Gantt views is the active view.
BestPageFitTimescale Optional Boolean True if the timescale is adjusted so the last printed page is exactly full. This argument is only available when the Task Usage view, Resource Usage view, Resource Graph, or one of the Gantt views is the active view.
PrintColumnTotals Optional Variant NOT available at this time.
PrintRowTotals Optional Variant NOT available at this time.

Return value

Boolean

Remarks

Using the FilePageSetupView method without specifying any arguments displays the Page Setup dialog box with the View tab selected.The FilePageSetupView method is not available when the Calendar is the active view.

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.