_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 Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property ActiveWorkbook As Workbook
    Get
'Usage
Dim instance As _Application
Dim value As Workbook

value = instance.ActiveWorkbook
Workbook ActiveWorkbook { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Workbook

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace