+ Reply to Thread
Results 1 to 2 of 2

Chart Update failed

  1. #1
    Registered User
    Join Date
    12-06-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    1

    Chart Update failed

    Hello,

    i import dates by csv-file Import, put it in formulas and draw a graph.

    For updating i have a macro:
    ------------------------------------------------------------------
    Private Sub M()
    Application.OnTime Now + TimeSerial(0, 0, 10), "M"
    ActiveWorkbook.RefreshAll
    End Sub
    ------------------------------------------------------------------
    Sub A()
    Application.OnTime Now + TimeSerial(0, 0, 10), "M"
    End Sub
    -------------------------------------------------------------------

    For updating by milliseconds i have a second Macro:
    ------------------------------------------------------------------------
    Private Sub Makro1()


    Dim OneMillisecond As Variant

    OneMillisecond = CDec(TimeSerial(0, 0, 1) / 1000)

    TenMilliseconds = OneMillisecond * CDec(1000)

    Application.OnTime Now + TenMilliseconds, "Makro1"

    ActiveWorkbook.RefreshAll

    End Sub
    ---------------------------------------------------------------
    Sub Start()

    Dim OneMillisecond As Variant

    OneMillisecond = CDec(TimeSerial(0, 0, 1) / 1000)

    TenMilliseconds = OneMillisecond * CDec(1000)

    Application.OnTime Now + TenMilliseconds, "Makro1"


    End Sub
    -----------------------------------------------------------------

    Both macros works very well for updating the csv-file and for recalculation of the formulas, also for milliseconds.

    Only my Graph will be updated for higher timeframes. For 10 seconds everything works fine. But if i go for 1 second or smaller, my Graph update didnt work

    Maybe someone know this problem.

    Regards
    Tom

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

    Re: Chart Update failed

    Does it make any difference if you make the OnTime calls the last line executed in each routine?

    I don't see any code that updates the graph. How does the graph know what data to show, or is the result of the data refresh always the same number of records?
    Cheers
    Andy
    www.andypope.info

+ 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. Automatic Label Caption update failed
    By poizones in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2018, 12:42 AM
  2. Transfer/update columns from 1 sheet to another + update chart & data selection
    By Julien355 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-29-2015, 11:54 PM
  3. [SOLVED] VBA to indicate if a chart has passed or Failed
    By Stevo56 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2014, 11:42 AM
  4. My first chart... failed!
    By RCH in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-15-2007, 12:46 AM
  5. [SOLVED] Cannot Activate Chart Area in Chart. Chart Object Failed
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2006, 09:45 PM
  6. How to identify cells which failed in Update Links
    By Mark Brody in forum Excel General
    Replies: 0
    Last Post: 05-19-2006, 06:10 AM
  7. [SOLVED] After failed update download, how can I bring back Excel?
    By Virginia in forum Excel General
    Replies: 2
    Last Post: 12-20-2005, 09:40 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