Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Find the row of all cells in a selection

If I select a block of cells, C14:F19
- and then run a subroutine:

msgbox selection.row

-That would read 14, the first row in the selection.
but how can I obtain the last row in the selection?
...................


Thanks
Tony
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Find the row of all cells in a selection

And another:

Selection(Selection.Rows.Count, 1).Row

Alan Beban

J.E. McGimpsey wrote:
One way:

With Selection
MsgBox .Item(.Count).Row
End With

another:

With Selection
MsgBox .Row + .Rows.Count - 1
End With



In article ,
(TonyJeffs) wrote:


If I select a block of cells, C14:F19
- and then run a subroutine:

msgbox selection.row

-That would read 14, the first row in the selection.
but how can I obtain the last row in the selection?
..................


Thanks
Tony



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
How can I find the series selection tab? Kat @ Rose Valley Charts and Charting in Excel 1 October 6th 09 06:04 PM
how do I find and replace within a selection in Excel 2007? geoff Excel Discussion (Misc queries) 4 December 8th 08 11:54 PM
Find Selection Changing increase contrast Jugglertwo Excel Discussion (Misc queries) 0 September 24th 08 09:17 PM
Is there a formula to find one phrase in a selection? Tiff1618 Excel Discussion (Misc queries) 4 September 3rd 05 02:01 AM
Find and REPLACE within a selection, or column- not entire sheet/. smithers2002 Excel Worksheet Functions 4 April 21st 05 04:45 PM


All times are GMT +1. The time now is 12:04 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"