Class ProtectedViewWindow (Word VBA)

The class ProtectedViewWindow represents a Protected View window.

Class Application gives access to class ProtectedViewWindow.


Dim pvw as ProtectedViewWindow
Set pvw = ActiveProtectedViewWindow

For Each

Here is an example of processing the ProtectedViewWindow items in a collection.


Dim pvw As ProtectedViewWindow
For Each pvw In ProtectedViewWindows
	
Next pvw

Methods

Activate - Activates the specified Protected View window.

Close - Closes the specified Protected View window.

Edit - expression.Edit (PasswordTemplate, WritePasswordDocument, WritePasswordTemplate)

ToggleRibbon - Shows or hides the ribbon.

Properties

Caption (Default member) - Returns or sets the caption text that is displayed in the title bar of the document or Protected View window.

Active true if the specified Protected View window is active.

Document returns a Document object associated with the Protected View window.

Height returns or sets the height of the Protected View window.

Index returns a Long that represents the position of an item in a collection.

Left returns or sets a Long, in points, that represents the horizontal position of the specified Protected View window.

SourceName returns the name of the source file for the specified Protected View window.

SourcePath returns the path of the source file for the specified Protected View window.

Top returns or sets the vertical position, in points, of the specified Protected View window. Read/write Long

Visible true if the specified Protected View window is visible. Read/write.

Width returns or sets the width, in points, of the specified Protected View window.

WindowState returns or sets the state of the specified Protected View window.

Document - Represents a document. The Document object is a member of the Documents collection. The Documents collection contains all the Document objects that are currently open in Word.