To change the properties of a specific view, you have to manipulate the XML
in the View.XML property. It can be a little daunting, but these articles
can set you on the right track:
Creating Custom Views (Microsoft Outlook 2002 Technical Articles):
http://msdn.microsoft.com/library/en...asp?frame=true
XML View Definitions (Microsoft Outlook 2002 Technical Articles):
http://msdn.microsoft.com/library/en...asp?frame=true
There is also a View Manipulation.zip file containing sample code on
http://www.OutlookCode.com somewhere, but I can't find it. Sue?
--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog:
http://blogs.officezealot.com/legault/
"Kirk" wrote:
> Thanks for your quick response. Unfortuately, I don't think this
> solution will help me.
>
> Your response dealt with "views" in Outlook. I know how to switch
> views like this:
>
> Sub ChangeView(strViewName)
> Dim objOL
> Set objOL = CreateObject("Outlook.Application")
> objOL.ActiveExplorer.CurrentView = strViewName
> Set objOL = Nothing
> End Sub
>
> MY problem is how to change to the "Group By" view of categories. My
> method will switch to the correct view, but it does not remember or set
> the "Group By" arrangement. Please let me know if you can guide me
> further.
>
> Thanx!
>
>