Application.CalendarBestFitWeekHeight method (Project)

Changes the height of the active calendar box to display all task bars.

Syntax

expression. CalendarBestFitWeekHeight

expression A variable that represents an Application object.

Return value

Boolean

Example

The following example changes the height of the active calendar box to display all task bars.

Sub CalendarBestFit_WeekHeight() 
 
 Dim Result As Boolean 
 
 'Activate Caldender view 
 ViewApply Name:="Calendar" 
 Result = CalendarBestFitWeekHeight() 
End Sub

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.