Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default selecting multiple rows

Try this with resize

Rows(ActiveCell.Row).Resize(5).Select


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Stuart" wrote in message ...
how do i select multiple rows from within VBA, I need something simillar to
the following, obviously the following line does not work, however it should
give you the idea of what I am after. i.e. select the row of the activecell
along with the five rows below it!

Rows(ActiveCell.Row, ActiveCell.Offset(5, 0)).Select




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default selecting multiple rows

how do i select multiple rows from within VBA, I need something simillar to
the following, obviously the following line does not work, however it should
give you the idea of what I am after. i.e. select the row of the activecell
along with the five rows below it!

Rows(ActiveCell.Row, ActiveCell.Offset(5, 0)).Select


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default selecting multiple rows


rownum = activecell.row
Rows(rownum & ":" & rownum+5).select

-----Original Message-----
how do i select multiple rows from within VBA, I need

something simillar to
the following, obviously the following line does not

work, however it should
give you the idea of what I am after. i.e. select the

row of the activecell
along with the five rows below it!

Rows(ActiveCell.Row, ActiveCell.Offset(5, 0)).Select


.

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 stop Excell selecting multiple rows? Chris L 99 Excel Discussion (Misc queries) 5 October 15th 08 06:50 PM
Selecting multiple rows Soheyl Excel Discussion (Misc queries) 1 June 12th 07 01:41 AM
selecting multiple rows within a Macro Tom Ogilvy Excel Programming 0 August 30th 03 01:08 AM
selecting multiple rows within a Macro Eric Dreshfield Excel Programming 0 August 29th 03 09:14 PM
selecting multiple rows within a Macro Jean-Paul Viel Excel Programming 0 August 29th 03 09:04 PM


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