Outlook 2010, need script for rules & Warnings

Status
Not open for further replies.

SMT

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hello, we got macro's to enable /disable rules in Outlook 2010. What I need is a script that will start the macro if I reveive a mail with a certain subject from a certain sender.

Or if this is not possible to start the macro at a specific time each day.

( complete newbie in programming)

Thanks in advance,

Rob
 

SMT

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Okay I'm newbie off.

I changed some things in my macro, and now it is a script.

Thank you for the reply.

Best

rob
 

SMT

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Timer based macros are difficult because Outlook doesn't include a timer - definately not a newbie task. You can run macros when things happen -ie, on send, on delete etc. But in your case, you could use a rule that runs a script.

You might be able to convert an existing macro - if not, the script should be able to fire the macro.

http://www.slipstick.com/outlook/rules/outlooks-rules-and-alerts-run-a-script/

http://support.microsoft.com/kb/306108

Hi, I've still got one problem to solve. As I mentioned we got those macro's to dis- and enable rules and warnings. I now run them by script. Is there a possibilty to en- or disable only one rule.

Underneath is a part of the script...can you please point me in the right direction, need to now where to put the ""CurrentRule.Name"" so that the script will only disable that rule.

Thanks,

Rob
script:

- Public Sub EnableAllRules(Item As Outlook.MailItem)

- Dim colRules As Outlook.rules

- Dim oRule As Outlook.Rule

- Dim count As Integer

- Dim ruleList As String

- Set colRules = Application.Session.DefaultStore.GetRules

- For Each oRule In colRules

- oRule.Enabled = True

- oRule.Execute ShowProgress:=True

- count = count + 1

- ruleList = ruleList & vbCrLf & count & ". " & oRule.Name

- Next

etcetera...
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
E Outlook 2010 need help with rules Using Outlook 0
G Need help configuring a PRF for Outlook 2010 and 2013 Using Outlook 0
C Outlook 2010, Need to restrict domain users from installing any sort of a addin in outlook Using Outlook 2
F Outlook 2010 - Need help with a custom field. Using Outlook 3
J Office + Outlook 2013 installed, but I need to install Outlook 2010 Using Outlook 2
W I Need help with vb.net and outlook 2010 Using Outlook 2
R Outlook 2010 Daily Calender need high detail Using Outlook 2
T BCM 2007 to Outlook 2010 with no BCM - need contacts imported BCM (Business Contact Manager) 3
N Do I need outlook connector for office 2010 as with outlook 2007? Using Outlook.com accounts in Outlook 1
L Outlook 2010 Outlook 2010 Outlook VBA and Custom Forms 2
C What folders are needed when reinstalling Outlook 2010 Using Outlook 0
e_a_g_l_e_p_i Gmail in Outlook 2010 preview issue Using Outlook 4
e_a_g_l_e_p_i Outlook 2010 Help setting up Gmail account in Outlook 2010 Using Outlook 3
B Outlook 2016 Unable to view images or logos on the outlook 2016 emails the same html code works well when i use outlook 2010 Using Outlook 0
M Outlook 2010 Outlook 2010 with O365 / Exchange Online Using Outlook 0
F Outlook 2010 Outlook 2010 and GMail Using Outlook 0
D Outlook 2007 vs. Outlook 2010 -- ToDo Bar Using Outlook 0
e_a_g_l_e_p_i I think it may be time to upgrade from Outlook 2010 Using Outlook 3
T Why does outlook 2010 convert only some forum notifications to plain text? Using Outlook 0
I Error saving screenshots in a custom form in outlook 2016, outlook 365 - ok in outlook 2013, outlook 2010 Outlook VBA and Custom Forms 5
M Outlook 2010 Problem with OutLook 2010 32 bit, after Windows Auto Update Using Outlook 3
M PST import from Outlook 2007 to 2010 - Address Book contacts all in 1 group Using Outlook 4
D Outlook 2010 account setup fails in particular domain Using Outlook 3
B Outlook 2010 is Auto Purging when not configured for that Using Outlook 1
W Outlook 2010 Reading Pane Slows Startup Using Outlook 3
S Outlook 2010 unable to change default font Using Outlook 7
B Outlook 2010 Can not find a certain file in M/S Outlook 2010. Using Outlook 1
Mark Foley Cannot enable add-in in outlook 2010 Using Outlook 0
W Outlook 2010 some sent items marked unread now (was Ok before) Using Outlook 0
RBLampert Updating from Outlook 2010 to Outlook 365 Using Outlook 0
L What are the risks of opening an Outlook 2016 .pst file in Outlook 2010? Using Outlook 4
S Unable to remove rule outlook 2010 Using Outlook 0
N Outlook 2010 Flag blocked for Safe Senders List???? Using Outlook 7
dweller Outlook 2010 Rule Ignores VBA Script Outlook VBA and Custom Forms 2
Mark Foley Unable to subscribe to published calendar in Outlook 2010 Using Outlook 4
K Maximum Categorize Shortcuts In Outlook 2010? Using Outlook 1
E Unable to open Outlook 2010 after adding new email account Using Outlook 4
RBLampert Outlook 2010 no longer (?) shrinks large images Using Outlook 4
N Outlook 2010 will not send nor receive Using Outlook 4
U Outlook 2010 'freezes' before moving emails Using Outlook 2
P Outlook 2010 trusted emails going to spam folder Using Outlook 18
E Outlook 2010 Subject sort uses Thread-Topic for grouping Using Outlook 2
King Mustard Maximum Categorize shortcuts in Outlook 2010? Using Outlook 1
C Outlook 2010 keeps asking for username and password Using Outlook 1
M Duplicate Primary Mail Accounts outlook 2010 Using Outlook 0
T Compacting Outlook 2010 OST results in old emails being re-sent Using Outlook 6
K Outlook 2010 duplicate download emails 1 inbox 1 PST no updates Using Outlook 3
D create an html table in outlook custom form 2010 using vba in MsAccess Outlook VBA and Custom Forms 7
Potty Ash MS Outlook 2010 custom form - validation or formula to request user to check a checkbox Outlook VBA and Custom Forms 16
RBLampert Outlook 2010 sends to/receives from some Gmail addresses but not others Using Outlook 3

Similar threads

Top