Expand Minimize

Global.IsSandboxed Property (Word)

True if the application window is a protected view window. Read-only.

Version Added: Word 2010

expression .IsSandboxed

expression An expression that returns a Global object.

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
Show:
© 2014 Microsoft