![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#8
|
|||
|
|||
![]()
Hi Ken,
Also found this. I made a new view. Am I able to just apply this new view via VBA? Thanks, Brad "Ken Slovak - [MVP - Outlook]" wrote: I do this sort of thing all the time in my addins. I usually grab the XML in the VBA Immediate window and put it in Notepad for easy editing. I then modify the view as desired and use the modified XML file as my base for setting up whatever custom view I want. For sorting this is the sort of XML you need: orderby order headingReceived/heading propurn:schemas:httpmail:datereceived/prop typedatetime/type sortdesc/sort /order /orderby You can have up to 3 sort fields within that orderby tag. Properties are identified using DASL property tags, so you need to pick those up for your view properties. You can also set grouping using tags for that. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Michael Bauer [MVP - Outlook]" wrote in message ... I haven't played with it myself. However, this prints the current view definition into the debug window: Debug.Print Application.ActiveExplorer.CurrentFolder.CurrentVi ew.Xml I'd play with the folder view, print CurrentView.Xml, and see what changes. If you have found how to define the settings you're looking for, you can edit the xml property. See also the Apply, and the Save method of the View object. -- Best regards Michael Bauer - MVP Outlook Manage and share your categories: http://www.vboffice.net/product.html?pub=6&lang=en . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do you collapse all groups without scrolling to end? | Greg S | Outlook - Using Contacts | 3 | July 7th 09 02:17 AM |
collapse a specific mail folder from a macro in Outlook 2007 | udo | Outlook and VBA | 6 | February 5th 09 08:26 AM |
collapse a specific mail folder from a macro in Outlook 2007 | udo | Outlook - General Queries | 2 | February 2nd 09 02:08 PM |
OL2007 Collapse All Groups | Christine Lisi | Outlook - Using Contacts | 4 | March 13th 08 12:48 PM |
Collapse groups programmatically | Rafael | Outlook - Using Forms | 0 | May 22nd 07 04:21 PM |