VBA macro to block and delete selected junk mail folder items
Jerry Callahan
0
Reputation points
Outlook 365 for pc does a good job of sending junk email to the junk folder. Unlike when operating in the inbox, blocking a sender does not move the email to the deleted folder. I need a VBA script that I can execute from the "junk folder" view, where I can select one or more email items and for each one put the sender in the blocked senders list and then delete the email item. Unlike Excel, Outlook does not offer a macro record option, so I am at a loss as to how to formulate the VBA code.
Sign in to answer