+ 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 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    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
    East Sussex, UK
    MS-Off Ver
    365 Ent SAC
    Posts
    8,887

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Outlook macro to enable 10 outlook rules
    By huat08 in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 11-26-2018, 11:09 AM
  2. Sending e-mails based on tiered rules from Excel via Outlook
    By FlaideyGhand in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-11-2015, 11:52 AM
  3. Excel Macro to Create Folders and Rules on Outlook
    By luiz.fellipe in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 09-15-2014, 04:09 PM
  4. [SOLVED] Outlook 2010 - Creating Rules - Rules Constant
    By Jack7774 in forum Outlook Formatting & Functions
    Replies: 3
    Last Post: 03-18-2013, 03:48 PM
  5. Creating roster with a few rules using Excel
    By frutz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-14-2011, 02:49 AM
  6. Replies: 0
    Last Post: 08-16-2011, 11:13 AM
  7. Replies: 2
    Last Post: 11-23-2010, 09:42 PM

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