Workbooks Property
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

_Application.Workbooks Property 

Returns a Workbooks collection that represents all the open workbooks.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim _Application1 As _Application

Dim returnValue As Workbooks
returnValue = _Application1.Workbooks

Workbooks Workbooks {get;}
public Workbooks get_Workbooks();
function get Workbooks() : Workbooks;

The collection returned by the Workbooks property doesn’t include open add-ins, which are a special kind of hidden workbook. You can, however, return a single open add-in if you know the file name. For example, Workbooks("Oscar.xla") will return the open add-in named "Oscar.xla" as a Workbook object.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show:
© 2016 Microsoft