Expand Minimize

Application.IsSandboxed Property (Excel)

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

Version Added: Excel 2010

expression .IsSandboxed

expression A variable that represents an Application object.

Return Value

Boolean

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

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