|
-
Mar 22nd, 2000, 04:40 AM
#1
Thread Starter
New Member
Hi,
I use this code to find the last row in an excel spreadsheet:
ActiveCell.SpecialCells(xlCellTypeLastCell).Select
iLastRow = ActiveCell.Row
But if I erase this last cell and I ask the program for the new last cell, it gives me the old last cell ???
Does anybody knows how to find the new last cell ?
-
Mar 22nd, 2000, 04:54 AM
#2
Addicted Member
My guess(!) is that you need to delete the last cell, not erase it.
-
Mar 22nd, 2000, 05:09 AM
#3
Thread Starter
New Member
Thank you HBR, I tried what you told me but the result was the same as above...
Another suggestion ?
-
Mar 23rd, 2000, 03:05 AM
#4
Thread Starter
New Member
Thank you Nitro, your code exactly fit my purpose and thank
you Lyla, I've found a lot of useful tips on this site...
Nankien
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|