편집

다음을 통해 공유


Global.IsSandboxed property (Word)

True if the application window is a Protected View window. Read-only.

Syntax

expression. IsSandboxed

expression An expression that returns a 'Global' object.

Example

The following code example displays whether or not the document referenced by doc is in a Protected View window.

If doc.Application.IsSandboxed Then 
 MsgBox "The document " & _ 
 """" & doc.Name & """" & _ 
 " is in a Protected View window." 
Else 
 MsgBox "The document " & _ 
 """" & doc.Name & """" & _ 
 " is not in a Protected View window." 
End If

See also

Global 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.