Macro to Change View on All Folders

Phillip

Member
Outlook version
Outlook 2007
Email Account
POP3
Hi,
I would like to be able to change the current view on all sub-folders in my inbox. I have about 75 and most will be the same view. The few that are different views will be changed individually.
thanks,
Phillip
 

Forum Admin

Senior Member
its too bad you aren't using outlook 2010 or 2013, it would be easy to do with any view. the easiest way to do it in outlook 2007 and earlier is by editing the default view. it works best when you start outlook using the clean views switch the edit the default view. use the steps in this article - http://www.outlook-tips.net/how-to/disable-group-views/

http://www.slipstick.com/developer/apply-view-to-folder-using-vba/ has a macro to apply views to folders - you need to loop through the folders and apply the view.
 

Phillip

Member
Outlook version
Outlook 2007
Email Account
POP3
Thanks Diane,
I changed olContactItem to olMailItem and it worked on the selected folder and one level of sub-folder.

Can this work on a situation with a mail folder and 4 levels of sub-folders? For example:

Inbox
Family
Girls
Iraq
Joe


Also, can a keyboard shortcut be assigned to run the macro?

thanks,
Phillip
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
i added a different macro to that page that can do multilevels of folders (it follows the folder/subfolder one). In 2007, yes, you can use a shortcut.

  1. Right click on the toolbar area.
  2. Choose Customize
  3. From the Commands tab, find Macros.
  4. Drag the macro button to the Menu bar or a Toolbar
  5. Right click on the button to expand the customize menu. shortcuts are preceded by &
 

Top