Jul 5, 2011 #1 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
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
Jul 9, 2011 Thread starter #2 may1hem Programmer Jul 28, 2002 262 GB Anyone have any ideas on how to do this? Upvote 0 Downvote
Jul 9, 2011 #3 S SkipVought Programmer Dec 4, 2001 47,489 US Check out http://msdn.microsoft.com/en-us/library/ee814736.aspx Skip, Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
Check out http://msdn.microsoft.com/en-us/library/ee814736.aspx Skip, Just traded in my old subtlety... for a NUANCE!
Jul 9, 2011 Thread starter #4 may1hem Programmer Jul 28, 2002 262 GB 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? Upvote 0 Downvote
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?
Jul 9, 2011 Thread starter #5 may1hem Programmer Jul 28, 2002 262 GB That's ok, I found it myself. In case anyone needs it: Set myNamespace = Application.GetNamespace("MAPI") Set Application.ActiveExplorer.CurrentFolder = myNamespace.GetDefaultFolder(olFolderInbox) Upvote 0 Downvote
That's ok, I found it myself. In case anyone needs it: Set myNamespace = Application.GetNamespace("MAPI") Set Application.ActiveExplorer.CurrentFolder = myNamespace.GetDefaultFolder(olFolderInbox)