Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to switch from calendar to mail in Outlook?

Status
Not open for further replies.

may1hem

Programmer
Jul 28, 2002
262
GB
I want to be able to switch from calendar to mail in Outlook 2007 using VBA, how can I do this?

On the Outlook toolbar I can click on Go --> Mail , but I don't see how to do this using VBA. Any ideas?

Thanks
 
Anyone have any ideas on how to do this?
 
Hi Skip, is there something specific on that page that you're referring to? I've been programming in Outlook VBA for a while now and know all of that.

What I've not come across yet is how to switch from Calendar view to Mail view. Any ideas?
 
That's ok, I found it myself. In case anyone needs it:

Set myNamespace = Application.GetNamespace("MAPI")
Set Application.ActiveExplorer.CurrentFolder = myNamespace.GetDefaultFolder(olFolderInbox)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top