Share via

How to execute a specific macro code depending on which account an incoming email is addressed to if in Outlook, I have several email accounts configured

CRUZ VEGA, NORMA ARACELI 0 Reputation points
2023-05-12T20:00:26.68+00:00

I have multiple email accounts/mailboxes set up in my Outlook. (my personal company account, a mailbox for windows problems, a mailbox for unix problems, and another mailbox for network problems), and I want to see if there is any way to determine the execution of one or the other code in a macro , depending on which account/mailbox the emails arrive. That is to say, if an email arrives in the Windows mailbox, a certain code of the macro is executed, if it arrives in the Linux mailbox, it executes another code within the macro and so on, executes one or the other code within a macro depending on a Which mailbox/account (FMB) does the mail arrive? Is it possible? Any ideas?... Thanks

Microsoft 365 and Office | Development | Other
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.