I have a worksheet I know is going to to contain a little bit of data, about 40 rows, which I need to clear out between runs. So I did this:
ThisSheet.Range("A2:ZZ999").Clear
ThisSheet.UsedRange.Calculate
I was under the impression that the second line would reset UsedRange and thus avoid the last row being a previous value. This appears to work.
However, when I look at the sheet in excel, it scrolls to line 999. The Calculate doesn't seem to fix this.
Did I miss something?