+ Reply to Thread
Results 1 to 4 of 4

Dynamic chart title created in VBA does not auto-update

  1. #1
    Registered User
    Join Date
    11-22-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Dynamic chart title created in VBA does not auto-update

    Hi -
    I have used the following code to create a dynamic chart title that gets its value from cell Sheet1!$A$1.
    Please Login or Register  to view this content.
    When the macro is run, the chart title initially displays what is in cell Sheet1!$A$1 correctly. However, I find that if the value in Sheet1!$A$1 changes, the chart title does not update.
    If I manually link the chart title (select chart title and enter "=Sheet1!$A$1" into the formula bar) then the chart title updates appropriately when the cell value changes. When this is done using VBA, the chart title does not change when the linked cell value changes.

    Thanks for your suggestions.
    Last edited by DH112213; 11-22-2013 at 12:42 PM.

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Dynamic chart title created in VBA does not auto-update

    If you are using 2010 you may use the Formula property:
    Please Login or Register  to view this content.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Dynamic chart title created in VBA does not auto-update

    I had to change you code in order for it to compile and work

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    11-22-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Dynamic chart title created in VBA does not auto-update

    Thanks. Yes - I checked that and found out what was happening.
    There was a subsequent line the in the VBA that changed the chart font size.
    Please Login or Register  to view this content.
    When this line of code was executed, it changed the ChartTitle.Formula value to static text.

    Reversing the order of these two commands resolved the issue. Now the chart title updates dynamically:
    Please Login or Register  to view this content.

+ 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 title on pivot chart
    By PKDJ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2013, 03:27 AM
  2. [SOLVED] Dynamic Chart Title
    By K m in forum Excel General
    Replies: 7
    Last Post: 12-06-2012, 04:47 AM
  3. How to change title in dynamic chart
    By anthonyu in forum Excel General
    Replies: 5
    Last Post: 06-22-2012, 10:11 AM
  4. [SOLVED] I would like to format a dynamic chart title
    By fayiama in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-15-2006, 10:15 AM
  5. Dynamic updating of chart title
    By gerok in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-14-2005, 02:28 AM

Tags for this Thread

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