Class
WordMacro
OfficeIMO.Word
Represents a single macro module within a document.
Inheritance
- object
- WordMacro
Remarks
Instances are returned by WordDocument.Macros, including host document and designer modules. Standard and class modules can be removed individually using WordMacro.Remove. Use WordDocument.RemoveMacros to remove the entire VBA project.
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property WordDocument.Macros
- Property WordMacroProject.Modules
Methods
public void Remove() #Removes this standard or class module from the document.
Exceptions
NotSupportedException– The module belongs to the host document or a designer.