Excel Reference

Refer to All the Cells on the Worksheet

Direct Answer

Refer to All the Cells on the Worksheet
is part of the Excel VBA object model. This reference page documents its syntax, parameters, and typical usage.

Reference

When you apply the Cells property to a worksheet without specifying an index number, the method returns a Range object that represents all the cells on the worksheet. The following Sub procedure clears the contents from all the cells on Sheet1 in the active workbook.

vb
Sub ClearSheet()
Worksheets("Sheet1").Cells.ClearContents
End Sub

!include[Support and feedback]

Reference: Excel object-model documentation • updated 06/08/2017
. Rebuilt for readability; see the original for complete parameter matrices.