Outlook VBA macros not visible in the script

Anonymous
2024-05-22T03:59:02+00:00

I got several issues when i wanna run a macro in the script of Outlook.

  1. Some macros not visible in the macro list of VBA.

When there are words in Sub (), the macros are not visible in the macro list. They become visble when it keeps as Sub (). For example, in the pic below, Macro "Test 222" is visible in the macro list but Marco "Template" is not.

  1. Macros not visible in the script

The macros not visible in macros list are visible in the script but they cannot be run. Those i can find under macro list in VBA are not visible in the script. In the pic below, only Macro "Template" is visible but when i run this, it shows the macro does not exist. Macro "Test 222" is not visible in the script list at all.

Anyone knows why?

Outlook | Windows | New Outlook for Windows | For business

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

9 answers

Sort by: Most helpful
  1. Anonymous
    2024-05-22T04:54:29+00:00

    Hi, I'm Diane and I'm happy to help you today.

    The only macros visible in the Run a script rule are specially formatted with the object name in the macro name - that is why the template macro is visible but the other macros are not. You cannot run these macros manually - you need to call them using a rule or another script.

    The only macros that display in the macro list are the ones without the object in the name - the ones with only ().

    Let me know how it goes, I'm here to help you further if needed.

    -- Diane

    0 comments No comments
  2. Anonymous
    2024-05-22T05:23:05+00:00

    Hi Diane,

    Happy to have your reply.

    Understood that only those formatted with object name are visible under Run a script rule. May I know why it shows script does not exist when i try to run Macro "Template"? It used to work but somehow it is not working now. Error message shown as below. Thanks!

    0 comments No comments
  3. Anonymous
    2024-05-22T15:28:29+00:00

    Is the Template script named in the rule? Based on the "" - it appears not. https://learn-attachment.microsoft.com/api/attachments/70fb2774-efa4-42e7-a822-b4c54bffb6e7?platform=QnA

    0 comments No comments
  4. Anonymous
    2024-05-23T02:06:19+00:00

    Yes "Template" is the name of the macro. Whatever macros i tried to run under Run a script shows the same error message, which is very weird.

    0 comments No comments
  5. Anonymous
    2024-05-23T02:40:26+00:00

    Is the macro listed in the rule? Based on the error, it appears a macro was not selected for the rule.

    https://learn-attachment.microsoft.com/api/attachments/82f76ab5-9c40-4101-89b9-fe9360201164?platform=QnA

    0 comments No comments