address of cells

Z

Zygan

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

Leith Ross

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
 
P

Paul Lautman

Zygan said:
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.
 
Top