How would I get a macro to run on the Inbox and any subfolders?
This only applies to the root folder
Set xInboxFld = Outlook.Application.Session.GetDefaultFolder(olFolderInbox)
How would I get a macro to run on the Inbox and any subfolders?
This only applies to the root folder
Set xInboxFld = Outlook.Application.Session.GetDefaultFolder(olFolderInbox)
dim subFolder
for each subFolder in xInboxFld.Folders
MsgBox subFolder.Name
next