View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Toppers Toppers is offline
external usenet poster
 
Posts: 4,339
Default Using specifieds in a range

The following works:

Sub test()

D = Range("G2").Value ' Contains A1
E = Range("H2").Value ' Contains B6
Range(D & ":" & E).Select ' Range("A1:B6") is selected

End Sub

HTH

"Momo" wrote:



in addition, yes i have jus realised i left out the"" but this is bringing
up an error when i run the macro,
.Range ("A1:R4") & .Range("D:E").Select

where D and E are as previous and A1 to R4 is a seperate range