Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Outlook 2007 - VBA macro (http://www.outlookbanter.com/outlook-vba/74601-outlook-2007-vba-macro.html)

Sergio Neves July 3rd 08 05:29 PM

Outlook 2007 - VBA macro
 
Hi

I would like to make a VBA macro for Outlook 2007 that could be initialized
when I start the outlook session to organize my folders and subfolders in the
navigation pane.

I have to main folders:

1) Personal folders
2) Gmail

I want that the macro minimizes the folder Gmail (don’t see its subfolders
in the navigation pane) and maximizes some folders in my personal folders. I
don’t want to click in the +/- buttons to organize the folders and subfolders
that I see in the navigation pane every time I start outlook.

I can’t find the object to do that. Is it possible?!

Thanks for the help.

Sergio Neves


Michael Bauer [MVP - Outlook] July 3rd 08 08:42 PM

Outlook 2007 - VBA macro
 


You cannot collapse the folders by code. Expanding folders works if you set
the folder as CurrentFolder.

--
Best regards
Michael Bauer - MVP Outlook

: VBOffice Reporter for Data Analysis & Reporting
: Outlook Categories? Category Manager Is Your Tool
: http://www.vboffice.net/product.html?pub=6&lang=en

Am Thu, 3 Jul 2008 09:29:03 -0700 schrieb Sergio Neves:

Hi

I would like to make a VBA macro for Outlook 2007 that could be

initialized
when I start the outlook session to organize my folders and subfolders in

the
navigation pane.

I have to main folders:

1) Personal folders
2) Gmail

I want that the macro minimizes the folder Gmail (don’t see its subfolders
in the navigation pane) and maximizes some folders in my personal folders.

I
don’t want to click in the +/- buttons to organize the folders and

subfolders
that I see in the navigation pane every time I start outlook.

I can’t find the object to do that. Is it possible?!

Thanks for the help.

Sergio Neves



All times are GMT +1. The time now is 11:35 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com