Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2000
I need proper syntax for a statement like: While ActiveCell.Row < xlEnd.Row How do I obtain the Row number of the end of the active work area in a worksheet? The same cell as the cell selected by Ctrl-End. TIA Fred Holmes |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim LastRow as long
with worksheets("somesheetnamehere") lastrow = .cells.specialcells(xlcelltypelastcell).row end with But excel remembers too much. It'll keep track of that last used cell even if I've cleared it. I like to pick out a column that always has data in it if that row is used. Dim LastRow as long with worksheets("somesheetnamehere") lastrow = .cells(.rows.count,"A").end(xlup).row end with I used column A in this sample. Fred Holmes wrote: Excel 2000 I need proper syntax for a statement like: While ActiveCell.Row < xlEnd.Row How do I obtain the Row number of the end of the active work area in a worksheet? The same cell as the cell selected by Ctrl-End. TIA Fred Holmes -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Obtain Row No of xlEnd | Excel Programming | |||
How To Obtain The Top 10% | Excel Discussion (Misc queries) | |||
anyone ever hear of a formula beginning "xlend"? | Excel Discussion (Misc queries) | |||
xlend syntax in VBA-guru help needed | Excel Programming | |||
Need to know how to obtain this...please | Excel Programming |