Microsoft Excel Training Videos

A macro in Microsoft Excel to Refer to all Excel cells on the worksheet


When you apply the Cells property to a spreadsheet in Microsoft Excel without specifying an index number, the method returns a Range object that represents all the Excel cells on the worksheet. The following Sub procedure clears the contents from all the cells on Excel Sheet1 in the active workbook.
Sub ClearSheet()
Worksheets("Sheet1").Cells.ClearContents
End Sub
The Excel macro in the training video demonstrates the concept.




Custom Search

Further reading on this Excel topic

How Do I... in Excel

Microsoft Excel Training Videos