+ Reply to Thread
Results 1 to 6 of 6

how to get chart to update during the code, with no pause & flicker after the code.

  1. #1
    Registered User
    Join Date
    10-22-2017
    Location
    ENGLAND
    MS-Off Ver
    2016
    Posts
    35

    how to get chart to update during the code, with no pause & flicker after the code.

    I have a code that edits a chart,
    the code uses application.screenupdating=false that speeds things up and hides the changes happening.
    I also have in the code a shape rectangle that comes up and says "please wait"
    and then at the end of the code the message shape dissapears.

    The code ends, and then the chart STILL visually pauses and flickers and updates, casuign a delay of about 1 second before fully changing.

    Quesion: how do I get the chart to update completely during the code, and not after, to prevent the flicker and change after teh code. Is there a refresh function or something that would work?

    thank you!

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: how to get chart to update during the code, with no pause & flicker after the code.

    please post your code for our review and analysis.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    10-22-2017
    Location
    ENGLAND
    MS-Off Ver
    2016
    Posts
    35

    Re: how to get chart to update during the code, with no pause & flicker after the code.

    Here is the simplified code, that is changing the legend only in this case. The issue still persists, in that the graph visually updates after the "please wait" box (rectangle 1) dissapears (with a 1 second delay). I want enverything to update so that when the "please wait" message is hidden, the graph is complete.

    any help would be appreciated, thank you.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: how to get chart to update during the code, with no pause & flicker after the code.

    I would get rid of the 'Please wait' rectangle. It appears to be the only thing that would generate the flicker.

  5. #5
    Registered User
    Join Date
    10-22-2017
    Location
    ENGLAND
    MS-Off Ver
    2016
    Posts
    35

    Re: how to get chart to update during the code, with no pause & flicker after the code.

    Without the rectangle, the graph still visibly updates after the code is finished. Any ideas?

  6. #6
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: how to get chart to update during the code, with no pause & flicker after the code.

    No, that was the only thing I could see that might cause an unexpected screen flicker.

+ 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. Pause Code for user to update cells
    By supremenuts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2017, 04:25 PM
  2. help with vba code to dynamically update the chart and its axis
    By rv02 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2016, 06:08 AM
  3. How to update many chart from my code
    By lotto009 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-27-2013, 12:36 AM
  4. Pause code in vb
    By Greg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2006, 05:40 PM
  5. Remove screen 'flicker' on executing code
    By peter.thompson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2006, 04:35 AM
  6. Replies: 1
    Last Post: 09-29-2005, 08:05 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