+ Reply to Thread
Results 1 to 2 of 2

Thread: VBA Chart Creation using Variable Range

  1. #1
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    Location: Location
    MS-Off Ver
    Excel 2007
    Posts
    266

    VBA Chart Creation using Variable Range

    Hey everyone;

    Kind of a continuation off of the previous thread found here:
    http://www.excelforum.com/excel-prog...olumn-vba.html

    For those not involved in the previous question, UR and UC are Row/Column counts from earlier parts in my worksheets, both Integers.

    I've accomplished fully populating the range of information, and now I'm working on the creation of the graph based upon that information...
    ActiveChart.SetSourceData Source:=Sheets("Graph Reference Area").Range("A2", Cells(UR, UC + 1)), PlotBy:=xlColumns
    For some reason, the use of the Cells command doesn't seem to function similarly with the filldown command that we made earlier

    I get 1004: Application-defined or Object-defined error. Any insight?
    Last edited by Miraun; 06-28-2011 at 01:38 PM.
    I '<3' reputation. If I helped, click the scales. This will be helping an internal departmental competition with co-workers.

    Reputation can be granted through the Scales Icon (for classic layout), or the little Star on the bottom of the post next to the blogging function for the new forum layout.

    If you're not busy, and really feel down on life, read my excel blog which may or may not have contents.

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    Location: Location
    MS-Off Ver
    Excel 2007
    Posts
    266

    Re: VBA Chart Creation using Variable Range

    Using Resize command made it work... not sure why Cells didn't work though...

    Either way, marking it closed.
    I '<3' reputation. If I helped, click the scales. This will be helping an internal departmental competition with co-workers.

    Reputation can be granted through the Scales Icon (for classic layout), or the little Star on the bottom of the post next to the blogging function for the new forum layout.

    If you're not busy, and really feel down on life, read my excel blog which may or may not have contents.

+ 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.2.0