View Single Post
  #2  
Old September 7th 07, 06:46 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default How to write VBA program for outlook to switch between GroupBy options



You can modify the view with
Application.ActiveExplorer.CurrentFolder.CurrentVi ew.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:

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

Ads