+ Reply to Thread
Results 1 to 3 of 3

Animated gif on UserForm during running macro

  1. #1
    Registered User
    Join Date
    07-09-2012
    Location
    San Antonio, Tx, U.S.A.
    MS-Off Ver
    Excel 2007
    Posts
    2

    Animated gif on UserForm during running macro

    Hello,

    I have a macro that I run on a daily report which performs several steps including importing data from other spreadsheets and formatting data, creating pivot tables, etc. However, I am hoping that there is a way to create a UserForm with an animated gif that can be displayed while the macro runs to let the user know that the macro is running.

    I have been able to create a UserForm for this with an animated gif by using the Web Browser function and have chosen a gif with a relatively small file size. However, when I run this UserForm in conjunction with the macro, the Web Browser is slow to load and either does not load until the macro is almost finished running or doesn't display at all.

    I have tried turning off screen updating, but this just causes the gif to only display one frame. Repainting doesn't seem to solve this. I have also tried using the wait command to give the UserForm a few seconds to fully load before the main macro code runs, but this does not resolve the issue either.

    Is there a way to get around this issue or is it simply impossible to have an animated UserForm displaying while a macro runs in the background?

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Animated gif on UserForm during running macro

    Is it not suitable for a simple progress bar rather than an animated gif?
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    07-09-2012
    Location
    San Antonio, Tx, U.S.A.
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Animated gif on UserForm during running macro

    While a progress bar could work for this particular project, I am hoping to apply the method of using an animated UserForm to another project where the length of time that a macro takes to run varies greatly depending on some loops and size of files being imported.

+ 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