Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Selection's first and last row

What is the best way to collect the first and last row numbers of a
currently selected area of a spreadsheet?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Selection's first and last row

If selection.Areas.count = 1 then
firstRow = selection(1).Row
lastRow = selection(selection.count).row
End if

--
Regards,
Tom Ogilvy

"Tim Coddington" wrote in message
...
What is the best way to collect the first and last row numbers of a
currently selected area of a spreadsheet?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Selection's first and last row - Thank Tom!!

Thanks, Tom

"Tom Ogilvy" wrote in message
...
If selection.Areas.count = 1 then
firstRow = selection(1).Row
lastRow = selection(selection.count).row
End if

--
Regards,
Tom Ogilvy

"Tim Coddington" wrote in message
...
What is the best way to collect the first and last row numbers of a
currently selected area of a spreadsheet?






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



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