+ Reply to Thread
Results 1 to 2 of 2

HELP REF. NEW DATA ONLY AS i MOVE TO ANY CELL IN THE NEW ROW/RANGE

  1. #1
    Guest

    HELP REF. NEW DATA ONLY AS i MOVE TO ANY CELL IN THE NEW ROW/RANGE

    I need a macrocode to change the data range in an inbeded chart as I move to any cell in the new row/range. this will be for the same type of data from a specific range of rows. If you can help, I would be most grateful! I am an experienced Excel
    user, but only a beginner VBA code writer. I feel it will take me a
    while to learn the code development well enough and I am on a time
    constraint.

    Thanks, Areidski




  2. #2
    Tushar Mehta
    Guest

    Re: HELP REF. NEW DATA ONLY AS i MOVE TO ANY CELL IN THE NEW ROW/RANGE

    No need for VBA code. Can be done by leveraging a little known fact of
    named ranges using relative references.

    Suppose your data are in A:C with A as the series name and B as the x
    value and C as the y value. Suppose your data start in row 2.

    With any cell in row 2 selected, create three names:
    SerName =Sheet2!$A2
    XVal =Sheet2!$B2
    YVal =Sheet2!$C2+NOW()*0

    Create a chart. Use the named formula for the various data sources.
    For an intro see 'Names in Charts'
    http://www.tushar-
    mehta.com/excel/newsgroups/dynamic_charts/names_in_charts.html

    When done, the series formula should look like:
    =SERIES('relative name in chart.xls'!SerName,'relative name in
    chart.xls'!XVal,'relative name in chart.xls'!YVal,1)
    where 'relative name in chart.xls' is the name of your workbook.

    Now, select any cell in a different row (say, row 3) and press F9. The
    chart will show the information from that row.

    --
    Regards,

    Tushar Mehta
    www.tushar-mehta.com
    Excel, PowerPoint, and VBA add-ins, tutorials
    Custom MS Office productivity solutions

    In article <[email protected]>,
    [email protected] says...
    > I need a macrocode to change the data range in an inbeded chart as I move to any cell in the new row/range. this will be for the same type of data from a specific range of rows. If you can help, I would be most grateful! I am an experienced Excel
    > user, but only a beginner VBA code writer. I feel it will take me a
    > while to learn the code development well enough and I am on a time
    > constraint.
    >
    > Thanks, Areidski
    >
    >
    >
    >


+ 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