I want to delete the cells in the range G123:P10000
, but the value of 123
in G123
keeps on changing, so how can I provide the variable while providing range.
Below can be used a one time, but I want to use it multiple times based on the value in the variable named 'count' which changes for every run so that it deletes from that range only
Range("G123:P10000").Select
Selection.ClearContents
I tried something like below, but its not working
count = ActiveSheet.Range("A1").End(xlDown).Row
Range("G$count:P10000").Select
Selection.ClearContents