Application.IsSandboxed Property (Excel)

Returns True if the specified workbook is open in a Protected View window. Read-only

Version Information

Version Added: Excel 2010

Syntax

expression .IsSandboxed

expression A variable that represents an Application object.

Return Value

Boolean

Remarks

Use the IsSandboxed property to determine if a workbook is open in a Protected View window.

Example

The following code example displays whether the specified workbook is open in a Protected View window.

Sub CheckIfSandboxed(wbk As Workbook) 
 MsgBox wbk.Application.IsSandboxed 
End Sub

See Also

Concepts

Application Object Members

Application Object