View Single Post
  #2  
Old January 16th 07, 03:18 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Customizing Folder Explorer in outlook2007

You can't replace an Explorer with your own. You can replace the current
view for a folder in an Explorer view with a custom view.

If you use code to add a new View to the Views collection of a folder you
can add that view as a table view. You then set the XML or view properties
to what you want.

Dim oFolder As Outlook.Folder
Dim colViews As Outlook.Views
Dim oView As Outlook.TableView

Set oFolder = oApp.ActiveExplorer.CurrentFolder
Set colViews = oFolder.Views
Set oView = colViews.Add("MyView", olViewType.olTableView,
olViewSaveOption.olViewSaveOptionAllFoldersOfType)

That line creates a new table view and when saved it will be usable for all
folders of that type. You can use other save options.

Once you have that TableView object you can use the properties of the
TableView to set all your view's properties and formatting. Look in the
Object Browser Help to get information about each property you can use to
set up your custom view.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Alex" wrote in message
...
Thanks,
but how do I get the current outlook tableView?
I want to replace the current message explorer with my own.


Ads