Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft