How to Run a rule at the press of a button

G

Guest

I get loads of spam (!!) and Outlook filters most of it out and moves to the
junk folder but rules only work on mail not in the junk folder. So to sort
out the spam I run a rule which deletes spam with certain words manualy from
the Junk folder.

How can I create a button to run a rule on mail in the junk folder

Thanks

AJB
 
G

Guest

You said you created a rule to delete items that are already in your Junk
mail folder - how did you do this? AFAIK, there's no way to create a rule
that processes anything but incoming or outgoing e-mails.

Did you write a VBA macro to do this? If so, and you want to run this macro
with a custom toolbar button, simply display the toolbar/menu Customize
dialog, and drag the command (which is the name of your macro procedure)
listed in the Macros category on the Commands tab to the menu/toolbar where
you want it.
 
S

Sue Mosher [MVP-Outlook]

Actually, you can create a rule that runs against any folder. It just has to be run manually. And cannot be run programmatically.

A VBA solution is the right direction. That's too much trouble for me, though. I just set my Junk folder to AutoArchive every day and delete items older than 4 days.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

You're absolutely right Sue! Sorry, in the back of my mind I thought I was
missing something. Yes, you have to manually run an existing rule that
processes incoming/outgoing e-mails to apply the actions on a specified
folder (or choose to run an existing rule on the folder that is currently
active).

For some reason I was thinking of how to apply a rule to a folder other than
Inbox/Sent Items during send/receive.
 
G

Guest

Thanks, a bit of a shame though

Eric Legault said:
You're absolutely right Sue! Sorry, in the back of my mind I thought I was
missing something. Yes, you have to manually run an existing rule that
processes incoming/outgoing e-mails to apply the actions on a specified
folder (or choose to run an existing rule on the folder that is currently
active).

For some reason I was thinking of how to apply a rule to a folder other than
Inbox/Sent Items during send/receive.
 
D

DLGolfs

So you are not able to write a macro to run a rule?

Just asking b/c I want to do that.
 

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