편집

다음을 통해 공유


ProtectedViewWindow.Workbook Property

Definition

Gets an object that represents the workbook that is open in the specified Protected View window.

public:
 property Microsoft::Office::Interop::Excel::Workbook ^ Workbook { Microsoft::Office::Interop::Excel::Workbook ^ get(); };
public Microsoft.Office.Interop.Excel.Workbook Workbook { get; }
Public ReadOnly Property Workbook As Workbook

Property Value

The workbook that is open in the specified Protected View window.

Remarks

Read-only.

Because a Protected View window is designed to protect the user from potentially malicious code, the operations you can perform by using a Workbook object returned by the _Workbook method will be limited. Any operation that is not allowed will return "Run-time error 1004: This command is not available when Excel is sandboxed."

Applies to