Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 830 Bytes

File metadata and controls

40 lines (25 loc) · 830 Bytes
title Workbook.ProtectWindows property (Excel)
keywords vbaxl10.chm199132
f1_keywords
vbaxl10.chm199132
api_name
Excel.Workbook.ProtectWindows
ms.assetid 0f285fbe-2545-5c7d-9e3d-f08d57e78092
ms.date 05/29/2019
ms.localizationpriority medium

Workbook.ProtectWindows property (Excel)

True if the windows of the workbook are protected. Read-only Boolean.

Syntax

expression.ProtectWindows

expression A variable that represents a Workbook object.

Example

This example displays a message if the windows in the active workbook are protected.

If ActiveWorkbook.ProtectWindows = True Then 
 MsgBox "Remember, you cannot rearrange any" & _ 
 " window in this workbook." 
End If 

[!includeSupport and feedback]