+ Reply to Thread
Results 1 to 3 of 3

Creating Outlook Rules via Excel VBA

  1. #1
    Registered User
    Join Date
    01-26-2020
    Location
    Germany
    MS-Off Ver
    365 Pro Plus
    Posts
    1

    Creating Outlook Rules via Excel VBA

    Hello everybody!

    I am currently trying to create a folder and then set up a rule in Outlook via Excel.
    While creating the folder works just fine, the code below does not create a rule even though it returns no error. If I go to the Outlook rule manager, then there a no rules.

    The rule itself is supposed to move all incoming mails to the newly created folder. The equivalent Outlook rule description is "Apply this rule after the message arrives -> move a copy to the specified folder".

    Can anyone help me out here?

    Please Login or Register  to view this content.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    48,666

    Re: Creating Outlook Rules via Excel VBA

    Thread moved to Outlook at OP's request
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    UK
    MS-Off Ver
    2016 primarily
    Posts
    4,017

    Re: Creating Outlook Rules via Excel VBA

    The last section doesn't look right. Try using:

    Please Login or Register  to view this content.
    Rory
    Sue, you're shouting at tea

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1