Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Application.ActiveWorkbook Property

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

Syntax

expression.ActiveWorkbook

expression   A variable that represents an Application object.

Example

This example displays the name of the active workbook.

Visual Basic for Applications
MsgBox "The name of the active workbook is " & ActiveWorkbook.Name



Community Additions

ADD
Show:
© 2015 Microsoft