Application.IsSandboxed property (Word)
True if the application window is a Protected View window. Read-only.
Syntax
expression. IsSandboxed
expression An expression that returns a Application object.
Remarks
Use the IsSandboxed property to determine if a document is open within a Protected View window.
Example
The following code example displays whether the specified document is open in a Protected View window.
Sub CheckIfSandboxed(doc As Document)
MsgBox doc.Application.IsSandboxed
End Sub
See also
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.