+ Reply to Thread
Results 1 to 6 of 6

Run macro 2 after the running of macro 1 is finished (running macro 1 takes some second)

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    34

    Run macro 2 after the running of macro 1 is finished (running macro 1 takes some second)

    Dear Professionals

    I wish to combine 2 macros, 1st macro named (clean),2nd macro named (New)

    code of 1st macro as follow:

    Please Login or Register  to view this content.
    code of 2st macro:

    Please Login or Register  to view this content.
    SUPPOSE, 1st macro take 10 second to finish loading.

    I wish to add some code between 1st and 2nd macro, and COMBINE two macro into one. (run 2nd macro ONLY after excel is not busy (finished loading for the 1st macro).

    Can anyone provide the magic code required for linking up the 2 macros please?

    Thank you very much.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Run macro 2 after the running of macro 1 is finished (running macro 1 takes some secon

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    34

    Re: Run macro 2 after the running of macro 1 is finished (running macro 1 takes some secon

    Dear mehmetcik

    Thank you first, but where i should place these lines? It looks like it is a macro itself.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Run macro 2 after the running of macro 1 is finished (running macro 1 takes some secon

    It is.

    Put it into the same module as your macros and run it.

    It will run your macros in sequence.

  5. #5
    Registered User
    Join Date
    07-29-2014
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    34

    Re: Run macro 2 after the running of macro 1 is finished (running macro 1 takes some secon

    Dear Mehmetcik

    Thank you very much, it works perfect.

  6. #6
    Forum Contributor
    Join Date
    08-17-2013
    Location
    Asia
    MS-Off Ver
    Excel 2021
    Posts
    273

    Re: Run macro 2 after the running of macro 1 is finished (running macro 1 takes some secon

    Please Login or Register  to view this content.

+ 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. [SOLVED] Code to run a Macro when another macro has finished running
    By bouncingbudha in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2014, 05:00 PM
  2. Macro to hide/unhide cells not running or running slow
    By mbp727 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2013, 04:22 PM
  3. [SOLVED] Canceling a running macro before re running that same macro
    By Klayton in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-09-2013, 07:42 PM
  4. Cannot find macro error when running a macro from a macro in a diffrent workbook.
    By Acrobatic82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 09:22 AM
  5. Prevent functions from running while macro is running
    By palpha32 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2009, 08:42 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