View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default Difine a range with variable

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