Attachmate Reflection 2014 .NET API Reference
RunMacro(MacroEnumerationOption,String) Method


The source location of the macro. MacroEnumerationOption.Document indicates that the macro resides in the session document's VBA project. MacroEnumerationOption.Common indicates that the macro resides in the Common VBA project.
The name of the macro to run.
Runs a macro.
Syntax
'Declaration
 
Overloads Sub RunMacro( _
   ByVal macroSource As MacroEnumerationOption, _
   ByVal macroName As String _
) 
'Usage
 
Dim instance As IMacro
Dim macroSource As MacroEnumerationOption
Dim macroName As String
 
instance.RunMacro(macroSource, macroName)
void RunMacro( 
   MacroEnumerationOption macroSource,
   string macroName
)

Parameters

macroSource
The source location of the macro. MacroEnumerationOption.Document indicates that the macro resides in the session document's VBA project. MacroEnumerationOption.Common indicates that the macro resides in the Common VBA project.
macroName
The name of the macro to run.
Requirements

Target Platforms: Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP, Microsoft Windows Server 2003 Terminal Services, Microsoft Windows Server 2008 Terminal Services

See Also

Reference

IMacro Interface
IMacro Members
Overload List

Send Feedback