Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Select a range of columns based on active cell

Cells(ActiveCell.Row,"H").Resize(1,20).Select

or
ActiveCell.Offset(0, 7).Resize(1,20).Select

--
Regards,
Tom Ogilvy

"Steve" wrote in message
news:3fafc07f$0$22368$afc38c87@...
Hello everyone. I am trying to select columns H:AA of the row that the
active cell is on. I can select column H with the code snippet below, but

I
don't know how to select a range:

ActiveCell.Offset(0, 7).Activate

Thank you in advance!!

-Steve





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
Row select mode to highlight active row of active cell Bart Fay[_2_] Excel Discussion (Misc queries) 0 May 11th 10 09:34 PM
How select active rows from A to D columns? ldiaz Excel Discussion (Misc queries) 2 October 2nd 08 04:36 PM
How can change range to select active rows instead of :=Range("S10 ldiaz Excel Discussion (Misc queries) 7 August 29th 08 03:52 PM
how can I select a range of cells based on a value of a cell? grigoras victor Excel Discussion (Misc queries) 1 June 26th 06 04:55 PM
Select cell from range based on input in excel xp dingy101 Excel Discussion (Misc queries) 3 November 20th 05 12:05 AM


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