_Workbook.RunAutoMacros Method

Runs the Auto_Open, Auto_Close, Auto_Activate, or Auto_Deactivate macro attached to the workbook. This method is included for backward compatibility. You should use the Open, Close, Activate and Deactivate events instead of these macros.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub RunAutoMacros ( _
    Which As XlRunAutoMacro _
)
'Usage
Dim instance As _Workbook
Dim Which As XlRunAutoMacro

instance.RunAutoMacros(Which)
void RunAutoMacros(
    XlRunAutoMacro Which
)

Parameters

See Also

Reference

_Workbook Interface

_Workbook Members

Microsoft.Office.Interop.Excel Namespace