| title | Workbook.ProtectWindows property (Excel) | |
|---|---|---|
| keywords | vbaxl10.chm199132 | |
| f1_keywords |
|
|
| api_name |
|
|
| ms.assetid | 0f285fbe-2545-5c7d-9e3d-f08d57e78092 | |
| ms.date | 05/29/2019 | |
| ms.localizationpriority | medium |
True if the windows of the workbook are protected. Read-only Boolean.
expression.ProtectWindows
expression A variable that represents a Workbook object.
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]