+ Reply to Thread
Results 1 to 7 of 7

Running macros simultaneously

  1. #1
    Registered User
    Join Date
    03-19-2010
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    14

    Running macros simultaneously

    Hi all

    Does anyone know if it's possible to run more than one macro at the same time?
    For instance, if there are 3 functions.

    FunctionA
    FuncionB
    FunctionC

    Is it possible to run FunctionB and FunctionC WHILE FunctionA is being executed?FunctionA must end when FunctionC reaches its end.

    thanks in advance

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Running macros simultaneously

    No; VBA is single-threaded.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-19-2010
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Running macros simultaneously

    Oh... =( ok then

    That kinda stops me from doing what I wanted to do.

    I wanted to run an animation while a certain code executed, kinda like a "loading screen".

    I read that it is also possible to insert an animated gif into an excel worksheet. In this case, I would also need a macro to have an animated gif right?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Running macros simultaneously

    Sorry, no clue what you're trying to do.

  5. #5
    Registered User
    Join Date
    04-14-2010
    Location
    NZ
    MS-Off Ver
    2007,2010
    Posts
    86

    Re: Running macros simultaneously

    found something that may or may not be of help..

    You could insert the Microsoft Web browser control (onto a userform for example) and set it to navigate to the location of an animated Gif, then show the userform at the beginning of the macro.. do the rest of your code.. then close the useform again

    link was here: hxxp://en.kioskea.net/faq/1402-inserting-an-animated-gif-in-excel

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Running macros simultaneously

    I have read something similar to what you want in the book by David and Raina Hawley entitled: EXCEL HACKS - 100 INDUSTRIAL STRENGTH TIPS & TOOLS. They call it 'display wait message' but in your case you could probably modify it to be a GIF image. You can download the example from here (chapte 7).

    abousetta

  7. #7
    Registered User
    Join Date
    03-19-2010
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Running macros simultaneously

    Thank you all for your replies.

    I found an interesting site on how to work with the animated gifs.

    http://www.xcelfiles.com/AnimatedGif.html

    But I still can't get it to work with my specific code, I'll keep trying.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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