Application.IsSandboxed Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

expression .IsSandboxed

expression An expression that returns a Application object.

Use the IsSandboxed property to determine if a document is open within a protected view window.

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