+ Reply to Thread
Results 1 to 4 of 4

Timer not working in VBA - Urgent help please

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    6

    Timer not working in VBA - Urgent help please

    Hi,

    I urgently need help with a problem I have. I have a button on an excel worksheet that opens a userform, reads an excel file row by row until the last row of data and based on the values in the cells will display an image. This is to create an animation effect. The program is working fine, however the problem I have is that I have tried to put a timer in to slow down the animation but it is just not working and I don't know why. When I run the animation it goes so fast through each row there is no time to see the images. The only way I can ensure that it is working is if I put breakpoints at each case which shows me it is actually working.

    I would also like to stop the "loop" when it gets to the last row instead of just going through all the rows and then starting again. The code for the program is below:

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Timer not working in VBA - Urgent help please

    An API timer should make the programming much simpler

    At the top of a code module
    Please Login or Register  to view this content.
    And in your subroutine
    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    09-05-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Timer not working in VBA - Urgent help please

    Hi AndyLitch,

    Thanks for your assistance. Smallman on Ozgrid kindly helped me with the very same solution last night. Please click on the link http://www.ozgrid.com/forum/showthread.php?t=177511 to see the full code working. I had some Office 2013 64 bit issues and I also managed to sort out the code to exit the loop after a certain number of rows.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Timer not working in VBA - Urgent help please

    Hi cross0404

    Please read this Forum Rule

    8. Don't cross-post without a link. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the URL from the address bar in your browser) to the cross-post. Expect cross-posts without a link to be closed.

    I'd suggest AndyLitch wasted his/her time...I know that aggravates me when I do the same.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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