다음을 통해 공유


Workbook.WindowActivate Event (Excel)

Occurs when any workbook window is activated.

Syntax

.WindowActivate(Wn)

A variable that represents a Workbook object.

Parameters

Name

Required/Optional

Data Type

Description

Wn

필수

Window

The activated window.

Example

This example maximizes any workbook window when it's activated.

Private Sub Workbook_WindowActivate(ByVal Wn As Excel.Window) 
 Wn.WindowState = xlMaximized 
End Sub

참고 항목

개념

Workbook Object

Workbook Object Members