Application ActiveWorkbook Property

Purpose

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 The document in the active protected view window cannot be accessed using this property. Instead, use the Workbook property of the ProtectedViewWindow object.

Syntax

ActiveWorkbook