'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)
string[] GetMacroNames( MacroEnumerationOption 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.