+ Reply to Thread
Results 1 to 6 of 6

Animated chart code needs speeding up

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    19

    Animated chart code needs speeding up

    Hi

    I am using the following code to animate a population pyramid chart. As there are 20 years of data this only takes 20 seconds to run through. However we now want to include an additional 50 years of forecast data. This results in the animation taking over a minute to run. is there a way I can speed this up?

    Please Login or Register  to view this content.
    Last edited by NannyNetty; 01-23-2020 at 03:51 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Animated chart code needs speeding up

    Administrative Note:

    Hi

    to add code tags, you can just select the code and click the #button. You probably added tags manually using a backslash instead of a slash in the closing tag.
    I corrected this for you.
    Last edited by Pepe Le Mokko; 01-23-2020 at 03:09 AM.

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

    Re: Animated chart code needs speeding up

    you could use the Sleep API to have finer control over the time delay
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    08-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Animated chart code needs speeding up

    Thanks Andy

    Unfortunately I'm a macro dabbler rather than an expert and have no idea what Sleep API means

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

    Re: Animated chart code needs speeding up

    Fair enough, here is a simple approach using a loop.
    You can adjust the speed by changing the value in M1.

    Please Login or Register  to view this content.
    The down side is the amount of delay is affected by the power of the pc.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Animated chart code needs speeding up

    That's perfect

    Thank you

+ 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. Help creating an animated bar chart.
    By toddy17992 in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 06-05-2018, 09:20 AM
  2. [SOLVED] Animated line chart
    By Dudgeon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-04-2013, 01:28 PM
  3. Animated line chart
    By lovethepirk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-12-2013, 06:01 AM
  4. Animated images on a chart
    By j_Southern in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-27-2012, 10:44 AM
  5. Animated images on a chart
    By j_Southern in forum Excel General
    Replies: 0
    Last Post: 01-27-2012, 10:44 AM
  6. Animated XY Chart?
    By Cam in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-06-2011, 05:48 AM
  7. Animated Excel chart.....
    By Cam in forum Excel General
    Replies: 8
    Last Post: 03-29-2011, 02:45 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