Add to Junk Senders

K

Keith Tromer

I am trying to write a macro that will add the email of SELECTED items to
the Blocked Senders List. I don't see anything in the object browser that
would enable access to the list.

Here is my code. Can anyone tell me what would replace this line:
'**ADD_to_Blocked_Senders_List .SenderEmailAddress

Sub AddJunkMail()
Dim oEmail As MailItem
For Each oEmail In ActiveWindow.Selection
With oEmail
'** ADD_to_Blocked_Senders_List .SenderEmailAddress
End With
Next
End Sub

Thanks,
Keith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top