Is there a way to refer the a column by its name in the top cell. this is also set up as a filter.
the column name is Totals and it is column "C" the heading Totals is in C1 so I don't want to delete that.
I have this code but can it refer to "totals" some how, as it might not be column "C".
DougP
the column name is Totals and it is column "C" the heading Totals is in C1 so I don't want to delete that.
I have this code but can it refer to "totals" some how, as it might not be column "C".
Code:
With ActiveWorkbook.Worksheets("Sheet2")
.Range("C2", .Range("C2").End(xlDown)).Delete
End With
DougP