TableView.DefaultExpandCollapseSetting (Outlook)

Returns or sets an OlDefaultExpandCollapseSetting constant that determines the default expansion setting for groups in the TableView object. Possible return values are olAllCollapsed - All groups are collapsed when the view is initially displayed, olAllExpanded - All groups are expanded when the view is initially displayed, olLastViewed - Groups are displayed expanded or collapsed depending on the state the groups were in when the view was last closed.


Session.CreateSharingItem.Move.Views(1).DefaultExpandCollapseSetting = olAllCollapsed