Global.IsSandboxed Property (Word)
True if the application window is a protected view window. Read-only.
Version Information
Version Added: Word 2010
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