Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.FilePageSetupCalendar Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Sets up the Calendar for printing.

Syntax

expression. FilePageSetupCalendar( ** Name, ** MonthsPerPage, ** WeeksPerPage, ** ScreenWeekHeight, ** OnlyDaysInMonth, ** OnlyWeeksInMonth, ** MonthPreviews, ** MonthTitle, ** AdditionalTasks, ** GroupAdditionalTasks, ** PrintNotes** )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
NameOptionalVariantSets up the Calendar for printing.
MonthsPerPageOptionalIntegerThe number of months to print on each page. Can be 1 or 2. The MonthsPerPage argument is required if OnlyDaysInMonth or OnlyWeeksInMonth is specified.
WeeksPerPageOptionalIntegerThe number of weeks to print on each page.
ScreenWeekHeightOptionalBooleanTrue if the week height displayed on screen is used for the printout.
OnlyDaysInMonthOptionalBooleanTrue if only the days in the month are printed. False if the days at the end of the previous month and at the start of the next month are printed in addition to the days in the current month. The OnlyDaysInMonth argument is ignored unless a value for MonthsPerPage is specified.
OnlyWeeksInMonthOptionalBooleanTrue if only the weeks that are fully contained in the month are printed. False if weeks that have one or more days in the month are printed. The OnlyWeeksInMonth argument is ignored unless a value for MonthsPerPage is specified.
MonthPreviewsOptionalBooleanTrue if preview calendars for the previous and next months are printed.
MonthTitleOptionalBooleanTrue if the month's title is printed.
AdditionalTasksOptionalBooleanTrue if tasks that do not fit on the Calendar are printed. (Additional tasks appear at the end of the printout.)
GroupAdditionalTasksOptionalBooleanTrue if additional tasks are grouped by day.
PrintNotesOptionalBooleanTrue if the notes associated with each task are printed. Notes are printed at the end, after any additional tasks

Return Value

Boolean

Remarks

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

Example

The following example sets up the calandar for printing with 2 months per page and with preview calendars for the previous and next months.

Sub File_PageSetupCalendar() 

 'Activate Calandar view 
 ViewApply Name:="&;Calendar" 
 FilePageSetupCalendar MonthsPerPage:=2, OnlyDaysInMonth:=False, MonthPreviews:=True 
End Sub
© 2018 Microsoft