simonjarvis
IS-IT--Management
Hi,
I know that the command Control End will move me to the bottom right hand corner of an excel sheet.
However i have a macro that extracts data to fill the sheet so the amount of data in it varies (from 200 rows to 15000 rows) depending on the query.
The problem is that Excel remembers the longest set of data in the sheet so even if your query returned 160 rows pressing Control End would take you to the end of row 15000.
Does anyone know how to reset where excel thinks the end of the data is?
Thanks
Simon
I know that the command Control End will move me to the bottom right hand corner of an excel sheet.
However i have a macro that extracts data to fill the sheet so the amount of data in it varies (from 200 rows to 15000 rows) depending on the query.
The problem is that Excel remembers the longest set of data in the sheet so even if your query returned 160 rows pressing Control End would take you to the end of row 15000.
Does anyone know how to reset where excel thinks the end of the data is?
Thanks
Simon