Triskelion
asked on
Last Possible Cell in Excel
Is there an object or DEFINE or variable that represents the last possible cell in a spreadsheet?
We all know that in Excel 2000, the last cell is IV65536, however, that value (IMHO) should be registered as a constant with the Excel Framework.
I'm looking for something like
xlLastRangeAddress or
xlLastCellCoordinate or
xlLastRow
xlLastColumn
or even a value that would go in the SpecialCells function
ActiveSheet.Cells.SpecialC ells( ... ).Activate
We all know that in Excel 2000, the last cell is IV65536, however, that value (IMHO) should be registered as a constant with the Excel Framework.
I'm looking for something like
xlLastRangeAddress or
xlLastCellCoordinate or
xlLastRow
xlLastColumn
or even a value that would go in the SpecialCells function
ActiveSheet.Cells.SpecialC
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
...other than visibly scrolling or jumping to the bottom-right.
One way I can think of would be a routine that trys the powers of 2 as row and column numbers. The limits are almost always a power of two. Just keep increasing the row until you get an error (which you trap) then try rows in the same way.
Hope this helps.
Hope this helps.
ASKER
Isn't there a hardcoded value that has this reference in it?
ASKER
NO is also an answer.
I gave you an answer other than NO though!
ASKER
Yes, I understand.
ASKER