Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do I count the number of rows selected?
I want to find out how many rows are in my selected range after issuing these
lines: Range("A2").Select Range(Selection, ActiveCell.SpecialCells(xlLastCell).Offset(0, -1)).Select I don't know how to go from there. Is there a row property I can use to capture the count of rows (something like countrows = selection.rows)? As you can tell, I'm pretty much a novice at this. Thanks in advance, S. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do I count the number of rows selected?
Hi Steve
You've practically got it!! countrows = Selection.Rows.Count -- Regards Roger Govier "SteveM" wrote in message ... I want to find out how many rows are in my selected range after issuing these lines: Range("A2").Select Range(Selection, ActiveCell.SpecialCells(xlLastCell).Offset(0, -1)).Select I don't know how to go from there. Is there a row property I can use to capture the count of rows (something like countrows = selection.rows)? As you can tell, I'm pretty much a novice at this. Thanks in advance, S. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do I count the number of rows selected?
hi
Dim c As Long c = Selection.Rows.Count MsgBox c regards FSt1 "SteveM" wrote: I want to find out how many rows are in my selected range after issuing these lines: Range("A2").Select Range(Selection, ActiveCell.SpecialCells(xlLastCell).Offset(0, -1)).Select I don't know how to go from there. Is there a row property I can use to capture the count of rows (something like countrows = selection.rows)? As you can tell, I'm pretty much a novice at this. Thanks in advance, S. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do I count the number of rows selected?
Thank you Roger & FSt1 for the quick replies.
S. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to fix a number of rows below the selected cells? | Excel Discussion (Misc queries) | |||
How to count the number of selected combobox within Excel? | Excel Discussion (Misc queries) | |||
Copy a selected number of rows | Excel Discussion (Misc queries) | |||
How do I check the number of rows selected | Excel Programming | |||
Count number of selected item in Listbox | Excel Programming |