Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Mr. Paul,
I have also been in a tricky situation like this. I found a way out to get the last row of the sheet, but under one condition. The sheet should have a column of data in which every row has data, "Row number" or "Sl. No." feilds, for example. You know the starting row of the first data in this column (let it be A5). To find the last row, use the code... Range("A5").xldown.row It is the same as pressing control and down arrow when you are at A5. And it would be better to use the for each loop as given below For each c in Range("A5:A" & Range("A5").xldown.row).cells <Write your code next Understood? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protect macro from stopping | Excel Discussion (Misc queries) | |||
Stopping a Looping Macro | Excel Programming | |||
stopping macro | Excel Programming | |||
Stopping an animation macro | Excel Programming | |||
My Macro keeps stopping?? | Excel Programming |