Document.RunAutoMacro Method (WdAutoMacros)

 

Runs an auto macro that is stored in the document.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

void RunAutoMacro(
	WdAutoMacros Which
)

Parameters

Which
Type: Microsoft.Office.Interop.Word.WdAutoMacros

One of the WdAutoMacros values.

If the specified auto macro does not exist, nothing happens.

Return to top
Show: