InfoConnect API Guide
Attachmate.Reflection.Emulation.IbmHosts Namespace / IMacro Interface / GetMacroNames Method
Indicates the location from which to get the list of macro names. MacroEnumerationOption.Document gets a list of macros from this session document's VBA project. MacroEnumerationOption.CommonProject gets a list of macros from the Common VBA project.


In This Topic
    GetMacroNames Method (IMacro)
    In This Topic
    Gets a list of existing macro names.
    Syntax
    'Declaration
     
    
    Function GetMacroNames( _
       ByVal macroSource As MacroEnumerationOption _
    ) As String()
    'Usage
     
    
    Dim instance As IMacro
    Dim macroSource As MacroEnumerationOption
    Dim value() As String
     
    value = instance.GetMacroNames(macroSource)

    Parameters

    macroSource
    Indicates the location from which to get the list of macro names. MacroEnumerationOption.Document gets a list of macros from this session document's VBA project. MacroEnumerationOption.CommonProject gets a list of macros from the Common VBA project.

    Return Value

    A set of macro names. The set may be empty if there are no existing macros.
    See Also