Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way in VB to identify the beginning and ending rows in a selected
range. The command below gives the address: ActiveWindow.RangeSelection.Address But what I want to do is to determine how many rows (and perhaps columns) are in a selected range. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe
Sub Macro2() x = Selection.Rows.Count y = Selection.Columns.Count MsgBox x & " Rows. " & y & " Columns." End Sub Mike "JR_06062005" wrote: Is there a way in VB to identify the beginning and ending rows in a selected range. The command below gives the address: ActiveWindow.RangeSelection.Address But what I want to do is to determine how many rows (and perhaps columns) are in a selected range. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks. That did the trick.
"Mike H" wrote: Maybe Sub Macro2() x = Selection.Rows.Count y = Selection.Columns.Count MsgBox x & " Rows. " & y & " Columns." End Sub Mike "JR_06062005" wrote: Is there a way in VB to identify the beginning and ending rows in a selected range. The command below gives the address: ActiveWindow.RangeSelection.Address But what I want to do is to determine how many rows (and perhaps columns) are in a selected range. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy a Range of Data Beginning and Ending with a Certain Value | Excel Discussion (Misc queries) | |||
How do I set end-of-range to #rows from beginning | Charts and Charting in Excel | |||
Identifying rows selected by filter | Excel Programming | |||
Identifying a Selected Range in a Macro | Excel Discussion (Misc queries) | |||
How do I create consecutive dates between a beginning and ending . | Excel Discussion (Misc queries) |