VBA to Collapse Specific Folder

jstevens
GoldLounger
Posts: 2618
Joined: 26 Jan 2010, 16:31
Location: Southern California

VBA to Collapse Specific Folder

Post by jstevens »

Is it possible to collapse a specific Outlook folder with VBA?

Example:
Result = Application.Session.Folders("MyOutlookApp").Folders("Folder_to_Collapse").Collapse = True
Regards,
John

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: VBA to Collapse Specific Folder

Post by HansV »

Outlook VBA doesn't have support for collapsing or expanding folders in the navigation pane.
Best wishes,
Hans

jstevens
GoldLounger
Posts: 2618
Joined: 26 Jan 2010, 16:31
Location: Southern California

Re: VBA to Collapse Specific Folder

Post by jstevens »

Thanks for the reply Hans.
Regards,
John