Using VBA To Export Rules

Saberman 1 Reputation point
2023-02-15T06:43:31.72+00:00

I have code that walks the Rules collection via VBA. There appears to be something missing in rules that move a message to a folder.

For example, consider a folder named GotIt. I have two folders with that name. One is a subfolder of Collection1 and the other is a subfolder of Collection2. When walking the Rules collection, the target folder is simply listed as GotIt. I cannot find anything which says what GitIt is a subfolder of.

Now when you browse Rules & Alerts in Outlook. The target folder is also listed as GotIt. But when you click on GotIt in the move it to the GotIt folder it opens a listing that show what folder it is under.

How can I find that while walking the Rules collection in VBA?

Outlook
Outlook
A family of Microsoft email and calendar products.
4,004 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,279 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChristyZhang-MSFT 23,896 Reputation points Microsoft Vendor
    2023-02-16T03:04:21.97+00:00

    Hi @Saberman ,

    Welcome to our forum!

    Looks like your issue is more related to vba, please kindly understand that the Outlook tag here we mainly focus on general issues about Outlook desktop client. In order to better solve your problem, we will add "Office Management" tag.

    As a workaround, it’s suggested that you could use the Outlook built-in feature to export rule. More information: Import or export a set of rules.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.