ActiveWorkbook Property

Microsoft Office Web Components Object Model

ActiveWorkbook Property

       

Returns a Workbook object that represents the open workbook.

expression.ActiveWorkbook

expression   Required. An expression that returns a Spreadsheet object.

Example

This example protects the structure of the open workbook in Spreadsheet1.

Speadsheet1.ActiveWorkbook.Protect , True