Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ActiveCell.Row in Range().Select?


I got a scipt containing this code:

Code
-------------------
Range("H22:K22").Selec
-------------------


Now I'd like make the row numer "22" dependant on the active cell.

So something like this (just explanatory, since the following code i
not working ofc):

Code
-------------------
Range("HActiveCell.Row:KActiveCell.Row").Selec
-------------------


Can anyone show me how to accomplish that

--
theblueride
-----------------------------------------------------------------------
thebluerider's Profile: http://www.excelforum.com/member.php...fo&userid=3775
View this thread: http://www.excelforum.com/showthread.php?threadid=57336

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default ActiveCell.Row in Range().Select?

One way

Cells(ActiveCell.Row, 1).Range("H1:K1").Select
It always select the cells from H:K in the activecell row

Or use
Range("H" & ActiveCell.Row & ":K" & ActiveCell.Row).Select



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



"thebluerider" wrote in message
news:thebluerider.2cs8fe_1155982805.9137@excelforu m-nospam.com...

I got a scipt containing this code:

Code:
--------------------
Range("H22:K22").Select
--------------------


Now I'd like make the row numer "22" dependant on the active cell.

So something like this (just explanatory, since the following code is
not working ofc):

Code:
--------------------
Range("HActiveCell.Row:KActiveCell.Row").Select
--------------------


Can anyone show me how to accomplish that?


--
thebluerider
------------------------------------------------------------------------
thebluerider's Profile: http://www.excelforum.com/member.php...o&userid=37754
View this thread: http://www.excelforum.com/showthread...hreadid=573367



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
Range Select with ActiveCell and Offset property AJ Master[_9_] Excel Programming 2 June 20th 06 11:26 PM
select range next to activecell lookin Excel Programming 3 March 29th 06 07:56 PM
Select Activecell in Range PraxisPete Excel Programming 0 June 1st 05 01:23 PM
ActiveCell.End(xlDown).Select not working consistently reclusive monkey Excel Programming 2 October 13th 03 02:28 PM
XP VBA: Range("A2", ActiveCell.SpecialCells(xlLastCell)).Select wessman Excel Programming 2 July 23rd 03 06:33 PM


All times are GMT +1. The time now is 03:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"