+ Reply to Thread
Results 1 to 2 of 2

Pausing everything until another Macro is run

  1. #1
    Registered User
    Join Date
    12-26-2016
    Location
    London, England
    MS-Off Ver
    365
    Posts
    79

    Pausing everything until another Macro is run

    Hi - I have some code that copies across an image and I need to pause everything until the user selects the image which then removes it from the sheet. I don't want the user to be able to do anything on the sheet until the Image has been removed.

    I need to first macro to Pause until the user clicks the image (which has the 2nd macro assigned to it) - So need the code that goes at the end of Show_Help_Image

    Can anyone help??

    Many thanks in advance...

    Here is my code....

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,429

    Re: Pausing everything until another Macro is run

    .
    .
    If I understand your question correctly ... call the second macro from within the first macro, where you want the first macro to pause.
    When the second macro is complete ... it should return to the same point in macro one.

    Sub MacroOne()
    do something

    do something

    do something

    call MacroTwo '<-- goes to second macro

    '<-- returns here

    do something
    do something
    End Sub

    Sub MacroTwo()
    do something
    do something
    End Sub '<--- goes back to macro one

+ 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. Pausing everything until another Macro is run
    By hans302 in forum Excel General
    Replies: 2
    Last Post: 01-06-2017, 02:40 AM
  2. [SOLVED] Pausing A Macro (allow user to extract data) aAnd Resume Macro
    By jbumps in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2013, 01:59 PM
  3. Pausing a Running Macro
    By AccountantCost in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2009, 07:56 AM
  4. Pausing before macro
    By dylanemcgregor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-08-2009, 05:40 PM
  5. Pausing a MACRO
    By accur8ly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2007, 01:06 AM
  6. Pausing Macro
    By Dohko in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-05-2007, 05:25 PM
  7. Pausing a Macro
    By PaulW in forum Excel General
    Replies: 0
    Last Post: 05-30-2006, 09:10 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