Worksheet 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 Worksheet object that represents the worksheet containing the specified range. Read-only.

expression.Worksheet

expression   Required. An expression that returns a Range object.

Example

This example activates the worksheet in Spreadsheet1 that contains the range named "Revenue."

  Spreadsheet1.Range("Revenue").Worksheet.Activate