Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 1.01 KB

Excel.Window.ActiveSheet.md

File metadata and controls

44 lines (25 loc) · 1.01 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Window.ActiveSheet property (Excel)
vbaxl10.chm356079
vbaxl10.chm356079
Excel.Window.ActiveSheet
44e4fd8d-45bd-5626-66db-107fb451b73f
05/21/2019
medium

Window.ActiveSheet property (Excel)

Returns an object that represents the active sheet (the sheet on top) in the active workbook or in the specified window or workbook. Returns Nothing if no sheet is active.

Syntax

expression.ActiveSheet

expression A variable that represents a Window object.

Remarks

If you don't specify an object qualifier, this property returns the active sheet in the active workbook.

If a workbook appears in more than one window, the ActiveSheet property may be different in different windows.

Example

This example displays the name of the active sheet.

MsgBox "The name of the active sheet is " & ActiveSheet.Name

[!includeSupport and feedback]