#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Macro Range

I have a macro for my spread sheet. When I get to Range, I want to say

Range (J ) .Select

What can I put after the J to have the range always be on whatever active
row that I am currently on, without actually putting the row number down.

Range (JActiveCell) .Select obviously doesn't work. Any ideas. Thank you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 367
Default Macro Range

Range("J" & activecell.row).select

hth
Carlo

On Jan 17, 2:21*pm, mbnspect
wrote:
I have a macro for my spread sheet. *When I get to Range, I want to say

Range (J *) .Select *

What can I put after the J to have the range always be on whatever active
row that I am currently on, without actually putting the row number down. *

Range (JActiveCell) .Select obviously doesn't work. Any ideas. *Thank you


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Macro Range

And another possibility...

Cells(ActiveCell.Row, "J").Select

or

Cells(ActiveCell.Row, 10).Select

Rick


"carlo" wrote in message
...
Range("J" & activecell.row).select

hth
Carlo

On Jan 17, 2:21 pm, mbnspect
wrote:
I have a macro for my spread sheet. When I get to Range, I want to say

Range (J ) .Select

What can I put after the J to have the range always be on whatever active
row that I am currently on, without actually putting the row number down.

Range (JActiveCell) .Select obviously doesn't work. Any ideas. Thank you


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
Run macro based on range value saman110 via OfficeKB.com Excel Discussion (Misc queries) 1 January 11th 08 01:28 AM
Adding Name Range to this macro Sunnyskies Excel Discussion (Misc queries) 0 February 1st 07 02:51 PM
Name a Range - Macro Danny Excel Worksheet Functions 0 October 14th 05 05:24 AM
Use Range Name in Macro Blue Hornet Excel Worksheet Functions 3 August 13th 05 06:02 PM
variable range in a macro AMK Excel Discussion (Misc queries) 3 July 6th 05 09:32 AM


All times are GMT +1. The time now is 12:42 PM.

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"