So I'm almost done with my VBA code... my routine sets a private to my
default Inbox (as per the title of this post) and in my routine, I
check to make sure the current Explorer is in my default Inbox or else
I don't want my macro executing. Here's the test:
At Application launch: Set myOlDefaultInboxFolder =
myNameSpace.GetDefaultFolder(olFolderInbox)
In my macro: If (Application.ActiveExplorer.CurrentFolder =
myOlDefaultInboxFolder) Then
I'm finding that when I switch folders to my other email account's
INBOX, the above test returns true. As a matter of fact, the above
test returns true for any folder called "inbox"... even if it is in a
PST file.
Does this sound right? Is there a way to test to see if the current
explorer's folder is in the default mailbox ?
Thanks
-Ed
Archived from group: microsoft>public>office>developer>outlook>vba