Sorry i created a new rule selecting Macro "Template" and it still shows the same.
Outlook VBA macros not visible in the script
I got several issues when i wanna run a macro in the script of Outlook.
- 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.
- 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.
9 answers
Sort by: Most helpful
-
Anonymous
2024-05-23T02:51:58+00:00 -
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.
-
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.