Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selecting multi rows

I wish to select rows from row FstRw to row LstRw where FstRw and LstRw are
established by my previous code. I can only find reference to selecting a
single row as a variable and multi rows by fixed row numbers. Any help
would be much appreciated.
Thanks
Derek Mansfield


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Selecting multi rows

Hi Derek

Try this

frow = 12
Lrow = 20
Rows(frow & ":" & Lrow).Select



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Derek Mansfield" wrote in message .uk...
I wish to select rows from row FstRw to row LstRw where FstRw and LstRw are
established by my previous code. I can only find reference to selecting a
single row as a variable and multi rows by fixed row numbers. Any help
would be much appreciated.
Thanks
Derek Mansfield



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Selecting multi rows


Range("A" & FstRw).Resize(LstRw - FstRw + 1).Select

or

Range(Cells("A" & FstRw), Cells(LstRw,"A"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Derek Mansfield" wrote in message
.uk...
I wish to select rows from row FstRw to row LstRw where FstRw and LstRw

are
established by my previous code. I can only find reference to selecting a
single row as a variable and multi rows by fixed row numbers. Any help
would be much appreciated.
Thanks
Derek Mansfield




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selecting multi rows

Hi Ron,
Thanks very much. Exactly what I was looking for.
Regards,
Derek Mansfield

"Ron de Bruin" wrote:

Hi Derek

Try this

frow = 12
Lrow = 20
Rows(frow & ":" & Lrow).Select



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Derek Mansfield" wrote in message .uk...
I wish to select rows from row FstRw to row LstRw where FstRw and LstRw are
established by my previous code. I can only find reference to selecting a
single row as a variable and multi rows by fixed row numbers. Any help
would be much appreciated.
Thanks
Derek Mansfield




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
Using CodeName when Selecting Multi-Tabs Dean Excel Programming 5 March 17th 10 08:32 PM
colating multi rows of data into single rows - no to pivot tables! UKMAN Excel Worksheet Functions 4 March 12th 10 04:11 PM
Selecting a subset of data from multi columns Al Excel Discussion (Misc queries) 1 May 7th 08 08:20 PM
after selecting 50 rows of a column i can't reference the cells in the rows Bob Salzer New Users to Excel 2 July 21st 06 10:29 PM
Multi Check Boxes (Selecting Just One) Kirk Lewis Excel Programming 5 August 2nd 04 01:41 AM


All times are GMT +1. The time now is 11:09 PM.

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"