Consulting

Results 1 to 4 of 4

Thread: Chart Question

  1. #1
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location

    Chart Question

    Can a chart series point to a recordset from a SELECT Query. I am looking at an existing workbook where csv files are loaded then manually cut/paste into a worksheet to serve as a Vlookup for a chart series. If I can read the necessary data into a recordset via ADO, per chart requested, could that data serve as the series data. Does this make sense? Stan

  2. #2
    VBAX Mentor CBrine's Avatar
    Joined
    Jun 2004
    Location
    Toronto, Canada
    Posts
    387
    Location
    Stan,
    I'm pretty sure its not possible to use the ADO recordset as the source for the vlookup, but it very easy to dump your recordset to a worksheet.

    [VBA]
    range("A1").copyfromrecordset
    [/VBA]

    Not sure if this is what you are looking for, but hopefully it helps.

    Cal
    The most difficult errors to resolve are the one's you know you didn't make.


  3. #3
    Administrator
    2nd VP-Knowledge Base
    VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    I can't test this idea because I don't have MS Query on my desktop (grrrrr), but what about creating a pivot table using the CSV file as external data and edit the query in MS Query? You can make a Pivot chart off of that I think...


    Otherwise, I'm not sure how you would do this.




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  4. #4
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    I was thinking oRS.Getrows returns an array much like a Range Object Stan

Posting Permissions

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