+ Reply to Thread
Results 1 to 2 of 2

Chart update working when macro executed step by step but not when at full execution

  1. #1
    Registered User
    Join Date
    07-10-2019
    Location
    Switzerland
    MS-Off Ver
    365
    Posts
    4

    Chart update working when macro executed step by step but not when at full execution

    Dear All,

    I've got a weird behavior of my macro. The data is x,y,z set of points (scan of a surface); I want to analyze the surface state, so at Y fixed I draw a plot (x,z), i get a x,y scatter plot of the section.
    I need to detrend it so i use a 6th degree interpolation. I extract the interpolation from the trendline (TrendLineValue function in VBA) of the grape since LINEST at high degree is not working properly (I know it is dirty but I already spend a lot of time on that).
    Then detrend the data, compute root mean square and store it in an array.
    And I iterate through different Y (I call them steps).
    The problem is between steps, the chart is not updated so trendline equation is not updated so value extracted by TrendLineValue are wrong....
    I played around with DoEvents, Wait, application. Calculate but nothing is working....

    Please do not mind all code related to FFT, I'm just trying to make this coefficient extraction working.
    Thank you for your help.

    Here is the file:
    gofile.io/?c=q9X9YE

    here is the code

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Last edited by olhey; 07-11-2019 at 10:45 AM. Reason: New readings

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Chart update working when macro executed step by step but not when at full execution

    Try using the Application.Ontime method to call your routine. (https://stackoverflow.com/questions/...graph-in-excel)
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

+ 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. [SOLVED] macro works in step through but not in full speed mode
    By charliec in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-28-2019, 02:14 PM
  2. Macro errors when running, but works when done step by step
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-02-2018, 03:54 PM
  3. Replies: 2
    Last Post: 01-11-2017, 12:24 AM
  4. [SOLVED] Stock Chart apparence is different if Macro1 runs step by step not directly !
    By HerryMarkowitz in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-23-2014, 04:31 AM
  5. ~ Need Step-by-step Guide on How To Create A Chart ~
    By exceltoohard in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-06-2013, 01:04 AM
  6. [SOLVED] preventing simple zoom macro from running step by step
    By reece1984 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-11-2012, 06:13 AM
  7. [SOLVED] I need step by step instructions to create a macro for 10 imbedde.
    By diana in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2005, 10:06 PM

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