Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Macro Object / GetMacroNames Method
A ProjectOption value. The location from which the list of macros is generated. ProjectOption_CurrentProject refers to a macro in the current session document's VBA project. ProjectOption_CommonProject refers to a macro in the Common VBA project.
In This Topic
    GetMacroNames Method (Macro)
    In This Topic
    Gets a list of existing macro names.
    Syntax
    expression.GetMacroNames( _
       ByVal macroSource As ProjectOption _
    ) As String()
    where expression is a variable that represents a Macro Object

    Parameters

    macroSource
    A ProjectOption value. The location from which the list of macros is generated. ProjectOption_CurrentProject refers to a macro in the current session document's VBA project. ProjectOption_CommonProject refers to a macro in the Common VBA project.

    Return Value

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