#1   Report Post  
Posted to microsoft.public.excel.misc
Zygan
 
Posts: n/a
Default address of cells


lets say the value of cell A1 = $J$2:$J$5 then how do i tell a a macro
to select this range


--
Zygan
------------------------------------------------------------------------
Zygan's Profile: http://www.excelforum.com/member.php...o&userid=34423
View this thread: http://www.excelforum.com/showthread...hreadid=551743

  #2   Report Post  
Posted to microsoft.public.excel.misc
Leith Ross
 
Posts: n/a
Default address of cells


Hello Zygan,

If you are referring to a VBA macro, the code would be...

Sub Test()

With ActiveSheet
.Range(.Range("A1")).Select
End With

End Sub

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=551743

  #3   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default address of cells

Zygan wrote:
lets say the value of cell A1 = $J$2:$J$5 then how do i tell a a macro
to select this range


In general in macros you should not have to select ranges. Instead just
create range objects.


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
address command for a range of cells, not one cell Khoshravan Excel Discussion (Misc queries) 1 May 5th 06 01:45 PM
how do i protect cells in a shared worksheet Debi Excel Discussion (Misc queries) 3 September 30th 05 11:15 PM
Display first, second, etc Nonblank Cells in a Range Jeremy N. Excel Worksheet Functions 12 September 25th 05 01:47 PM
Cells in address 3PLEngineer Excel Discussion (Misc queries) 1 August 23rd 05 07:57 PM
Counting only active cells Sac73 Excel Discussion (Misc queries) 16 April 4th 05 05:49 AM


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