In an Excel spreadsheeet, you can use Ctrl + End to go to the bottom right-hand corner of the used area of a spreadsheet. You can do the equivalent in VBA using SpecialCells(xlLastCell).
In the spreadsheet, if you delete (not clear) some previously-used rows or columns at the bottom or right of the remaining data, using Ctrl + End still takes you to the old last cell, until you save the workbook, at which point it resets the last cell to the new bottom-right-hand corner.
In VBA, if you delete in the same way, xlLastCell likewise continues to take you to the old last cell. I don’t want to have to save the spreadsheet at this point, so is there any way I can reset the last cell to the new position without saving?
Where is my beating-the-head-against-a-brick-wall emoticon when I need it?
Thanks and regards
Alison C