Navigation: Object Model Reference > Macros Collection > Remove Method |
|
Removes a Macro object from the collection.
Note: Any references to the macro should be disposed of (Set objMacro = Nothing) before removing.
Syntax
macros.Remove(ByVal name As String) As Boolean
Arguments
macros
Macros collection
name
Required. Name of the macro. Names are compared without case sensitivity.
Return value
True if the macro was found and removed or False if the macro was not found.
See Also
Applies to Macros collection