+ Reply to Thread
Results 1 to 3 of 3

VBA - Updating Dynamic Line Chart & Inserting Dynamic Formula

  1. #1
    Registered User
    Join Date
    01-02-2014
    Location
    Tri-State Area, USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Cool VBA - Updating Dynamic Line Chart & Inserting Dynamic Formula

    Hello,

    So I have been spinning my wheels on this quite a bit and am turning to you guys for some help.

    Here is the scenario:

    I have a worksheet that contains multiple line charts. Above each chart is a small table that contains the values for the X & Y axes (Date is X, Value is Y) that is formatted as shown in the attached sample picture.

    1. Every time the macro runs a new Date and new Value will be generated in the table. How can I use vba to dynamically link the table to the chart and update the data series (Date is X axis, Value is Y axis)?. For example, when 4/30/2014 runs Chart1 should contain the new date and associated value.

    2. The 3rd line in the table reflects the percentage change each month between the values. How can the % change formula be inserted into the new column each time a new Date & Value is populated? For example, if the macro runs and produces 4/30/2014 as a Date, and 100 as a Value, how can the formula that produces "-15%" be added in dynamically?


    Thanks very much in advance for any help


    chart1.png

  2. #2
    Registered User
    Join Date
    01-02-2014
    Location
    Tri-State Area, USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: VBA - Updating Dynamic Line Chart & Inserting Dynamic Formula

    Hi all,

    Any help would be greatly appreciated. Am still trying to crack this since the original post. All I need to be able to do is dynamically update the range in the chart based on the table (above the chart) and populate the formula in the % change row each time a new date & value are added.

    Thank you again for any insight.

  3. #3
    Registered User
    Join Date
    01-02-2014
    Location
    Tri-State Area, USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: VBA - Updating Dynamic Line Chart & Inserting Dynamic Formula

    I figured out how to program the dynamic ranges, last piece I need help with is being able to populate a formula across a row until the cell above it is empty. In this example, the formula would always start in D6, and then go to E6, F6, G6, and so on until the cell above it is blank (e.g. H5).

    Any help is appreciated, thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dynamic Range Column Chart w/ Dynamic Avg Line (Excel 2007)
    By BrokenBiker in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-04-2012, 11:40 AM
  2. Dynamic updating the chart
    By ramakrishnavbms in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-19-2012, 01:41 PM
  3. Use of Active X or Dynamic Chart for updating
    By Drew Goldberg in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-19-2010, 06:59 PM
  4. Dynamic chart updating
    By nschmoyer in forum Excel General
    Replies: 1
    Last Post: 05-19-2010, 04:23 PM
  5. [SOLVED] Dynamic chart not updating correctly.
    By Mike K in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-05-2006, 08:35 AM

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