Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Determine exctent of selected range
I would like to determine the maximum row and column references for a
selected range of cells, Thanks, Mike |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Determine exctent of selected range
One way:
Dim nLastRow As Long Dim nLastCol As Long With Selection nLastRow = .Item(.Count).Row nLastCol = .Item(.Count).Column End With In article , "Michael Allen" wrote: I would like to determine the maximum row and column references for a selected range of cells, |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Determine exctent of selected range
Michael,
If you mean you'd like to determine the last row and column in the selected range then this would do it: MsgBox "last row is" & Selection.Rows(Selection.Rows.Count).Row & vbCr & _ "last column is " & Selection.Columns(Selection.Columns.Count).Column If you just want the number of rows or columns in the selection, use the parts inside the parens. Michael Allen" wrote in message . .. I would like to determine the maximum row and column references for a selected range of cells, Thanks, Mike |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
determine the name of the selected pivot table | Excel Discussion (Misc queries) | |||
Determine the Row in a Range | Excel Programming | |||
How do you determine if it's the 1st row/col of a specified range? | Excel Programming | |||
Determine range with VBA | Excel Programming | |||
Determine Selected Cells | Excel Programming |