CalendarSharing.RestrictToWorkingHours property (Outlook)

Returns or sets a Boolean value that indicates whether calendar items that do not occur within working hours should be included in the iCalendar (.ics) file created by the ForwardAsICal or SaveAsICal methods of the CalendarSharing object. Read/write.

Syntax

expression. RestrictToWorkingHours

expression An expression that returns a CalendarSharing object.

Return value

True if calendar items that do not occur within working hours should be included; otherwise, False.

Remarks

This property must be set to False if the CalendarDetail property of the CalendarSharing object is set to olFreeBusyOnly or olFullDetails..

See also

CalendarSharing Object

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.