+ Reply to Thread
Results 1 to 2 of 2

Ranges & SetSourceData

  1. #1
    Registered User
    Join Date
    07-08-2005
    Posts
    11

    Ranges & SetSourceData

    Hello,

    I'm trying to reduce work by creating a macro to create charts from a worksheet. Each worksheet may have a different number of rows of data, so I first determine the last row of data then create ranges based on which columns i want to use. This is snippet of the code i'm trying to use:

    Please Login or Register  to view this content.

    The problem I'm having is trying to use a range variable in SetSourceData vs. hard-coding. Hard-coding ranges works, but since each worksheet may have different rows I need to use a variable. Is there an easier way to do this?

    Thanks for your help
    Last edited by VBA Noob; 01-25-2008 at 01:57 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Try changing

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    Also, just be sure it is taking the variable ranges, comment out the line
    Please Login or Register  to view this content.
    rylo
    Last edited by rylo; 01-25-2008 at 07:57 PM.

+ 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