Assuming you know that there are nRows, you can use
Set rng = Range("A1:A" & nRows)
or something similar
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
"ditzafar" wrote in
message ...
Could I use excel function when I don't know the range and I need to
define it with variable.
If it possible, how I do it?
thanks:)
--
ditzafar
------------------------------------------------------------------------
ditzafar's Profile:
http://www.excelforum.com/member.php...o&userid=29475
View this thread: http://www.excelforum.com/showthread...hreadid=497501