Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Upperbound of Selected Range
Hi All,
An easy one - how do I assign the upper row number of the selected range to the value Up_Bound? Thanks Andi |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Upperbound of Selected Range
Hi Andi,
Try: Up_Bound = Selection.Row --- Regards, Norman "Andibevan" wrote in message ... Hi All, An easy one - how do I assign the upper row number of the selected range to the value Up_Bound? Thanks Andi |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Upperbound of Selected Range
Thanks - How would I then assignt the lowerbound of the selected range to a
value? "Norman Jones" wrote in message ... Hi Andi, Try: Up_Bound = Selection.Row --- Regards, Norman "Andibevan" wrote in message ... Hi All, An easy one - how do I assign the upper row number of the selected range to the value Up_Bound? Thanks Andi |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Upperbound of Selected Range
Hi Andi,
The first row cis returned by: Selection.Row The last row is returned by: Selection.Row + Selection.Rows.Count - 1 --- Regards, Norman "Andibevan" wrote in message ... Thanks - How would I then assignt the lowerbound of the selected range to a value? "Norman Jones" wrote in message ... Hi Andi, Try: Up_Bound = Selection.Row --- Regards, Norman "Andibevan" wrote in message ... Hi All, An easy one - how do I assign the upper row number of the selected range to the value Up_Bound? Thanks Andi |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Upperbound of Selected Range
Assuming a single area selection.
Up_Bound = selection.rows(selection.rows.count).row Lower_Bound = selection.Row -- Regards, Tom Ogilvy "Andibevan" wrote in message ... Thanks - How would I then assignt the lowerbound of the selected range to a value? "Norman Jones" wrote in message ... Hi Andi, Try: Up_Bound = Selection.Row --- Regards, Norman "Andibevan" wrote in message ... Hi All, An easy one - how do I assign the upper row number of the selected range to the value Up_Bound? Thanks Andi |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Upperbound of Selected Range
Thanks Norman - I had been trying to use UBOUND() and LBOUND() but to no
avail. Ta Andi "Norman Jones" wrote in message ... Hi Andi, The first row cis returned by: Selection.Row The last row is returned by: Selection.Row + Selection.Rows.Count - 1 --- Regards, Norman "Andibevan" wrote in message ... Thanks - How would I then assignt the lowerbound of the selected range to a value? "Norman Jones" wrote in message ... Hi Andi, Try: Up_Bound = Selection.Row --- Regards, Norman "Andibevan" wrote in message ... Hi All, An easy one - how do I assign the upper row number of the selected range to the value Up_Bound? Thanks Andi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Setting var to selected Range | Excel Discussion (Misc queries) | |||
Appearance of a selected range | Excel Discussion (Misc queries) | |||
Searching for zero value within a selected range | Excel Programming | |||
Copying a selected used range | Excel Programming | |||
Box around selected range | Excel Programming |