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

  • Thread starter Thread starter Little Radish
  • Start date Start date
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
 
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:
 
Back
Top