ProtectedViewWindows.Count property (Word)

Returns a Long that represents the number of Protected View windows in the collection. Read-only.

Syntax

expression.Count

expression An expression that returns a ProtectedViewWindows object.

Example

The following code example displays the number of Protected View windows that are currently open.

MsgBox ProtectedViewWindows.Count

See also

ProtectedViewWindows Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.