I am trying to get a piece of code to clear the data in some cells, using the column references. I am using the following code:
Worksheets(sheetname).Range(.
I just came up with this very simple method of clearing an entire sheet.
Sub ClearThisSheet() ActiveSheet.UsedRange.ClearContents End Sub