+ Reply to Thread
Results 1 to 2 of 2

Difine a range with variable

  1. #1
    Registered User
    Join Date
    12-08-2005
    Posts
    19

    Question Difine a range with variable

    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

  2. #2
    Bob Phillips
    Guest

    Re: 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" <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
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1