Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting var to selected Range El Bee Excel Discussion (Misc queries) 2 January 18th 08 09:31 PM
Appearance of a selected range d_mack Excel Discussion (Misc queries) 10 October 5th 07 12:31 AM
Searching for zero value within a selected range TR[_2_] Excel Programming 2 July 6th 04 03:39 PM
Copying a selected used range michael Excel Programming 1 September 24th 03 02:49 PM
Box around selected range Tom Ogilvy Excel Programming 1 September 7th 03 04:42 PM


All times are GMT +1. The time now is 04:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"