ActiveWorkbook Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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