F
Fox via OfficeKB.com
I have an Excel macro already written to loop through an Outlook folder
(Inbox or a subfolder I provide) and find and email based on the subject. If
the email is found it runs some other code. Right now I am the only one that
runs the macro, so I already know what Outlook folder the macro needs to
search. Others may need to run this macro though, and since they may have
the email in a different folder, the macro needs to be able to search the
Inbox, and then any subdirectories until it finds the necessary email. They
may even have copies of the email in multiple folders, but I don't think that
would make a difference since they would all be identical and the macro just
needs to pull some information from the body of the email.
I came across a thread similiar to this where Eric Legault posted some code
for looping through Outlook to list all the folders, but I couldn't find a
way to adapt it to search email in the Inbox and subfolders. Can anyone help
me with this? Thanks.
(Inbox or a subfolder I provide) and find and email based on the subject. If
the email is found it runs some other code. Right now I am the only one that
runs the macro, so I already know what Outlook folder the macro needs to
search. Others may need to run this macro though, and since they may have
the email in a different folder, the macro needs to be able to search the
Inbox, and then any subdirectories until it finds the necessary email. They
may even have copies of the email in multiple folders, but I don't think that
would make a difference since they would all be identical and the macro just
needs to pull some information from the body of the email.
I came across a thread similiar to this where Eric Legault posted some code
for looping through Outlook to list all the folders, but I couldn't find a
way to adapt it to search email in the Inbox and subfolders. Can anyone help
me with this? Thanks.