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

_Application.ActiveWorkbook Property 

Returns a Workbook object that represents the workbook in the active window (the window on top). Returns Nothing if there are no windows open or if either the Info window or the Clipboard window is the active window.

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

Dim _Application1 As _Application

Dim returnValue As Workbook
returnValue = _Application1.ActiveWorkbook

Workbook ActiveWorkbook {get;}
public Workbook get_ActiveWorkbook();
function get ActiveWorkbook() : Workbook;

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

© 2016 Microsoft