expression.RunMacro3( _ ByVal macroSource As MacroEnumerationOption, _ ByVal macroName As String, _ ByRef macroParameters() As Object _ )
where expression is a variable that represents a Macro Object
Parameters
- macroSource
- A MacroEnumerationOption Enumeration value that specifies the location of the macro. MacroEnumerationOption_Document specifies a macro in the session document's VBA project. MacroEnumerationOption_Common specifies a macro in the Common VBA project.
- macroName
- The name of the macro to run.
- macroParameters
- An array of parameters to pass to the macro.