I want to write macro that making a graph. I can't know the range so I writing a loop that would check the range. Could I define the range with variable that I get from the loop?
thanks![]()
I want to write macro that making a graph. I can't know the range so I writing a loop that would check the range. Could I define the range with variable that I get from the loop?
thanks![]()
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" <ditzafar.211y3y_1136280601.7925@excelforum-nospam.com> wrote in
message news:ditzafar.211y3y_1136280601.7925@excelforum-nospam.com...
>
> 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
>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks