Hi, I use this line of code to erase only the values and not the formulas inside a range :
Worksheets("Months1"
.Range("months1Inputs"
.SpecialCells(xlCellTypeConstants).ClearContents
It works great except that when there is no data to erase it crashes. When I do a regular clearcontents It doesn't crash when there is no data to erase. Is there anybody that knows the solution to this problem?
Thx
Worksheets("Months1"
It works great except that when there is no data to erase it crashes. When I do a regular clearcontents It doesn't crash when there is no data to erase. Is there anybody that knows the solution to this problem?
Thx