expression.GetMacroNames( _ ByVal macroSource As MacroEnumerationOption _ ) As String()
where expression is a variable that represents a Macro Object
Parameters
- macroSource
- A MacroEnumerationOption Enumeration value that indicates the location from which the list of macro names is generated. MacroEnumerationOption_Document gets the list from this session document's VBA project. MacroEnumerationOption_CommonProject gets the list from the Common VBA project.
Return Value
A set of macro names. The set may be empty if there are no existing macros.