Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
VBA question
Hi
I have a range defined as Range("C20, L2000"). I want to find the last record in the range that has any value and then count the number of rows in this range Please advise |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
VBA question
Sub countum()
Set r = Range("C20:L2000") Set terminus = Nothing For Each rr In r If IsEmpty(rr) Then Else Set terminus = rr End If Next MsgBox (terminus.Row - r.Row + 1) End Sub -- Gary''s Student - gsnu200834 "ub" wrote: Hi I have a range defined as Range("C20, L2000"). I want to find the last record in the range that has any value and then count the number of rows in this range Please advise |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
where can I see my question and answer? Yesterday I ask a question | Excel Discussion (Misc queries) | |||
If, then question | Excel Worksheet Functions | |||
Newbie Question - Subtraction Formula Question | Excel Discussion (Misc queries) | |||
The question is an excel question that I need to figure out howto do in excel. | Excel Worksheet Functions | |||
Possible And If Question | Excel Worksheet Functions |