次の方法で共有


ProtectedViewWindow.Caption Property (Word)

Returns or sets the caption text that is displayed in the title bar of the document or protected view window. Read/write String.

Version Information

Version Added: Word 2010

Syntax

expression .Caption

expression An expression that returns a ProtectedViewWindow object.

Remarks

To change the caption of the protected view window to the default text, set this property to an empty string ("").

Example

The following code example displays the caption for the active protected view window.

MsgBox "The caption for the active protected " & _ 
 "view window is: " & ActiveProtectedViewWindow.Caption 

The following code example changes the caption for the active protected view window.

ActiveProtectedViewWindow.Caption = Application.UserName & "'s copy of Word" 

See Also

Concepts

ProtectedViewWindow Object

ProtectedViewWindow Object Members