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-23T02:51:58+00:00

    Sorry i created a new rule selecting Macro "Template" and it still shows the same.

    0 comments No comments
  2. Anonymous
    2024-05-23T03:43:03+00:00

    From what I can see that macro looks good.

    Use this stub macro to test it - select a message and step through the code. Does your template macro error? If so which line?

    Sub RunAutoReplywithTime() Dim objApp As Outlook.Application Dim objItem As Object ' MailItem Set objApp = Application Set objItem = objApp.ActiveExplorer.Selection.Item(1)

    'macro name you want to run goes here Template objItem

    End Sub

    This screenshot has the macro, should translation mess it up. https://learn-attachment.microsoft.com/api/attachments/10796d1a-0a77-4258-a7e0-93ea10d4b51e?platform=QnA

    0 comments No comments
  3. Anonymous
    2024-05-23T04:01:10+00:00

    The error popped up when i tried to run the macro and the first line was highlighted when i clicked ok in the error message.

    0 comments No comments
  4. Anonymous
    2024-05-23T04:06:25+00:00

    Put it in the same module as the Template macro. It can be after the template macro.

    0 comments No comments