Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB Code to Close Open Subfolders in Outlook

Tags:

vba

outlook

Outlook has an habit of opening sub-folders if an email has been sent to it automatically (through rules). There is no way to turn off this feature.

Does anyone have ideas for code that would periodically (say every 30 seconds), automatically collapse all subfolders within, say, the sent items folder?

Thx

like image 425
PcH Avatar asked Jan 22 '26 07:01

PcH


1 Answers

The Outlook object model doesn't provide anything for collapsing folders in the navigation pane.

The Starting Outlook with all folders collapsed/expanded states the following:

To keep the mailbox collapsed even when a new message is being delivered, make sure that your Inbox and other folders that receive email (for instance by a rule) have been added to your Favorites list.

like image 94
Eugene Astafiev Avatar answered Jan 23 '26 20:01

Eugene Astafiev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!