Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
I saw this discussion on Jonathan's blog, so here's one option:
#1: Follow the instructions in this article with this code:
Public Sub EmptyJunkEmailFolder()
Dim outapp As Outlook.Application
Set outapp = CreateObject("outlook.application")
Dim olitem As Object
Dim fldJunk As Outlook.MAPIFolderSet fldJunk = outapp.GetNamespace("MAPI").GetDefaultFolder(olFolderJunk)
For Each olitem In fldJunk.Items
olitem.Delete
NextSet fldJunk = Nothing
Set olitem = Nothing
Set outapp = NothingEnd Sub
#2: Assign the above macro to a toolbar button as per the instructions in this article
#3: Change the icon for the macro as per the instructions in this article (stealing the icon from Tools | Empty Deleted Items for example)