How to write VBA program for outlook to switch between GroupBy options

L

Little Radish

Hello, MVPs

Hope my poor English may make you all understand my questions.

I'm using Outlook 2003. In order to have a gmail-like view, I "customize
current view" of the Inbox, and select "Group By" conversation. That really
benefits me a lot to deal with so many mails.

But sometimes "Group By conversation" is a block to sort those mails by
Received field or From field. I have to click by click to select off the
"Group By" option, and select it again after the sort.

I want to write a VBA program to swith between GroupBy options. I knew a few
about VBA in excel, and there is no Macro Recorder in outlook. Would any
MVPs give me some detailed indications, such as which object handle the
options? Related book or webpage containing code fragment is much
apprectiated.

Littel Radish
Welcome to Beijing 2008 Olympics
 
M

Michael Bauer [MVP - Outlook]

You can modify the view with
Application.ActiveExplorer.CurrentFolder.CurrentView.Xml

Easiest is to create manually the needed views and store the xml content
anywhere. then assign one of the stored data to the xml proeprty to switch
the view.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Thu, 6 Sep 2007 15:16:20 +0800 schrieb Little Radish:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top