+ Reply to Thread
Results 1 to 11 of 11

Animations in excel - is this possible or not?

  1. #1
    Registered User
    Join Date
    10-23-2008
    Location
    Sweden
    Posts
    92

    Animations in excel - is this possible or not?

    Hello,

    I have a question to all you experts out there regarding excel and animations.

    The thing is this:
    I've converted a track & field board game to excel and it currently works just like I want it to.
    However I'd really like to add some more "flavour" to it with some sort of animations and I have no idea how to go about doing that. Or even if it's possible.

    I'm guessing that 100 meters is one of the easier events perhaps so I'll use that as an example.

    The event is split into 3 parts (start, midrace and finish).
    Each athlete will get a time calculated for each of these parts.
    My idea then is to use this value in some sort of animation to represent the race visually (the values I'm talking about are columns K, M and O in the screenshot)
    For 100m it would be a straight track with flags (or figures) moving from start towards the finish line according to how good their times are.
    Of course, other events would be more complicated but I thought I'd start with one of the "easier" events.

    Does anybody have a clue how to do this, or if it's even possible?

    Regards
    /Johan
    2017-08-14 13_30_25-100m_w.xlsm - Excel.jpg

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Animations in excel - is this possible or not?

    Animation is most definitely possible in excel: https://www.youtube.com/watch?v=Vs2XUffK-1w

    :-) That's just one example using ASCII art. Having stick figures moving along a row/column would be very easy. Alternatively, you could use an image / shape that is constantly deleted and replaced slightly further over as the code runs.

  3. #3
    Registered User
    Join Date
    10-23-2008
    Location
    Sweden
    Posts
    92

    Re: Animations in excel - is this possible or not?

    I've managed to get a couple of flags moving in the document at http://www.cwdb.se\track.xlsm (I couldn't get the upload working). Is it possible to get the three flags moving at different speeds according to a specified value?
    Let's say I set a value of 10 seconds for the first flag to make it take 10 seconds to complete its movement. Is that possible?

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Animations in excel - is this possible or not?

    I've had a play around, have a look.
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,240

    Re: Animations in excel - is this possible or not?

    What are we supposed to see?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Animations in excel - is this possible or not?

    Run the macro you dippy mare. ;-)

    I'd have put a button on the sheet to run it....well ok, I did put a button on the sheet to run it but on my system the button being there caused excel to crash (dodgy, crappy, IT dept installed O/S and office).

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,240

    Re: Animations in excel - is this possible or not?

    Good point! paperbag.gif

    Bit of an anti-climax, though ...

    And it has crashed my Excel too, so maybe nothing to do with crappy IT department, and more to do with crappy VBA???!!!!

  8. #8
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Animations in excel - is this possible or not?

    That's weird. Here's the VBA:

    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Animations in excel - is this possible or not?

    Doh. Yeah, soon as I post it I spot the issue. When the (endtime - starttime) is bigger than the steptime......

    Change that line to:

    Please Login or Register  to view this content.
    It's possible the resolution of the display updates could come down a bit also.... 1 screen update per lane per meter may possibly be too many.
    Last edited by BellyGas; 08-15-2017 at 06:00 AM.

  10. #10
    Registered User
    Join Date
    10-23-2008
    Location
    Sweden
    Posts
    92

    Re: Animations in excel - is this possible or not?

    Thanks for your effort but I couldn't get your example working (I got a message that I need to update the code to be able to run it on a 64-bit system, which my installation of Excel is)

    However I got an animation working for 100m somewhat similar to what this guy is doing https://www.youtube.com/watch?v=6fh5yBE6Moo
    Here's a link to my file: http://www.cwdb.se/100m.xlsm

    The problems now are these two:
    1. This only works if the object is to move in a straight line. Is there some way to "predefine" the path along which the object is to move?
    I want to be able to simulate a race around a race track.
    2. There will be 8 objects moving at the same time and all must move at different speeds according to values I get from a specific cell

    Am I trying to do the impossible here?
    Last edited by johandenver; 08-16-2017 at 10:19 AM.

  11. #11
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Animations in excel - is this possible or not?

    Quote Originally Posted by johandenver View Post
    Thanks for your effort but I couldn't get your example working (I got a message that I need to update the code to be able to run it on a 64-bit system, which my installation of Excel is)
    You would need to add PtrSafe after the Declare statement for both functions.

    Am I trying to do the impossible here?
    No, but asking a lot for a free forum I would imagine, unless you find someone both bored and capable.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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. Cell values displayed in images/animations.
    By Mezons91 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 11-18-2015, 05:04 PM
  2. Replies: 2
    Last Post: 08-13-2015, 11:23 AM
  3. [SOLVED] Can Excel Have Transition Animations When Selecting Worksheets?
    By Steve@Rugby in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2013, 11:19 AM
  4. Can't view animations or flash type files on my spreadsheet
    By SkyB in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 02-13-2013, 04:51 PM
  5. Animations in excel
    By Bill-E-BoB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2007, 02:41 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