_Document.RunAutoMacro Method
Runs an auto macro that's stored in the specified document. If the specified auto macro doesn't exist, nothing happens.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub RunAutoMacro ( _
Which As WdAutoMacros _
)
'Usage
Dim instance As _Document
Dim Which As WdAutoMacros
instance.RunAutoMacro(Which)
void RunAutoMacro(
WdAutoMacros Which
)
Parameters
- Which
Type: Microsoft.Office.Interop.Word.WdAutoMacros
Required WdAutoMacros.
Remarks
Use the Run method to run any macro.