How to: Open Workbooks
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

How to: Open Workbooks

NoteNote

Some code examples in this topic use the this or Me keyword or the Globals class in a way that is specific to document-level customizations, or they rely on features of document-level customizations such as host controls. These examples can be compiled only if you have the required applications installed. For more information, see Features Available by Product Combination.

The Workbooks collection in Microsoft Office Excel 2003 makes it possible to work with all open workbooks and to open workbooks.

To open an existing workbook

  • Use the Open method of the Workbooks collection, passing in the path to the workbook.

    this.Application.Workbooks.Open(@"C:\YourPath\YourWorkbook.xls",
        missing, missing, missing, missing, missing, missing, missing,
        missing, missing, missing, missing, missing,missing, missing);
    
    

See Also

Show:
© 2016 Microsoft