Export (0) Print
Expand All
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

Application.ActiveWorkbook Property (Excel)

Published: July 16, 2012

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.

Note Note

The document in the active protected view window cannot be accessed using this property. Instead, use the Workbook property of the ProtectedViewWindow object.

expression .ActiveWorkbook

expression A variable that represents an Application object.

This example displays the name of the active workbook.

MsgBox "The name of the active workbook is " & ActiveWorkbook.Name
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.