Results 1 to 9 of 9
  1. #1
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Run Rules VB Code (MSO 2003)

    Has anyone ever seen or made or used a script to execute all the Outlook rules (right at that moment, not timed for later)?

    I find myself constantly running the rules, and what I'd like to do is leave all my mail in in Inbox, and then, as needed, run my rule set, which includes all my filing instructions.

    Where could/would I look for such a script?

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Run Rules VB Code (MSO 2003)

    Rules are not exposed in Outlook 2003 (or earlier) VBA, so you cannot write a macro that runs rules. It is posssible in Outlook 2007, I've heard.

  3. #3
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Run Rules VB Code (MSO 2003)

    Hans:

    Well that's not at all what I wanted to hear. Oh well....

    Thanks,
    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  4. #4
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,573
    Thanks
    5
    Thanked 1,057 Times in 926 Posts

    Re: Run Rules VB Code (MSO 2003)

    With Outlook 2007 you can add "run rules now" to any Toolbar.

    Joe
    Joe

  5. #5
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Run Rules VB Code (MSO 2003)

    You can do the same with OL2002 but it does not select any rules by default.
    Regards,
    Rory

    Microsoft MVP - Excel

  6. #6
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,573
    Thanks
    5
    Thanked 1,057 Times in 926 Posts

    Re: Run Rules VB Code (MSO 2003)

    Outlook 2007 is the same. It does not select any rules by at least it saves you looking around for 'run rules now'. You can programtically execute rules in Outlook 2007 - see Execute Method [Outlook 2007 Developer Reference] which is part of the Rule Object in the Outlook Object Model Reference section of the Outlook 2007 Developer Reference

    Joe
    Joe

  7. #7
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Run Rules VB Code (MSO 2003)

    Joe:

    But is this possible for 2003, if it is VB script or code either way?

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  8. #8
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Run Rules VB Code (MSO 2003)

    I already told you, the Outlook object model in VBA (pre 2007) does not have support for manipulating rules. So it is not possible in Outlook 2003, whether in VBA or VBScript.

  9. #9
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Run Rules VB Code (MSO 2003)

    Hans:

    Yea, you told me, I guess I just wasn't quite clear on the terminology etc.

    Sorry,
    Chcuk
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •