Syntax

expression.Open

expression A variable that represents a RecentFile object.

Return Value
A object that represents the opened workbook.

Example

This example opens the workbook Analysis.xls and then runs its Auto_Open macro.

Visual Basic for Applications
Workbooks.Open "ANALYSIS.XLS" ActiveWorkbook.RunAutoMacros xlAutoOpen

See also: