Dim rng as Range
With Worksheets("Macros")
set rng = .Range(.Cells(29, 1), .Cells(lastrow, 2))
End with
msgbox rng.Address(0,0,xlA1,True)
--
Regards,
Tom Ogilvy
"JohanF" wrote in
message ...
If I use
Worksheets("Macros").Range(.Cells(29, 1), .Cells(lastrow, 2))
I get a sytax type of error??
--
JohanF
------------------------------------------------------------------------
JohanF's Profile:
http://www.excelforum.com/member.php...o&userid=33779
View this thread: http://www.excelforum.com/showthread...hreadid=535513