'Declaration
Public Function GetMacroNames( _ ByVal macroSource As MacroEnumerationOption _ ) As String()
'Usage
Dim instance As Macro Dim macroSource As MacroEnumerationOption Dim value() As String value = instance.GetMacroNames(macroSource)
public string[] GetMacroNames( MacroEnumerationOption macroSource )
Parameters
- macroSource
- The location from which to get a list of macro names. 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.