+ Reply to Thread
Results 1 to 3 of 3

Pausing for input

  1. #1
    Registered User
    Join Date
    08-20-2008
    Location
    DFW, Texas
    Posts
    26

    Pausing for input

    I'm working on something that needs an input based off a graph in the middle of the macro. Some of the calculations are needed to continue. I'm opening another userform at that time in order to allow the user to input the new values then they click a button to continue. How do I pause the main macro until user input is done? Or do I need to just bring up the user form and then use input box for the values?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello SQChevy,

    Displaying the UserForm while in the main macro will pause the macro until you close the UserForm. You must make sure the property ShowModal is set to True. This is the default setting for a UserForm. Why not input the data using TextBoxes on the UserForm rather than calling InputBoxes?

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    08-20-2008
    Location
    DFW, Texas
    Posts
    26
    Well, I'm displaying a graph that the used will need to find a value based on numbers calculated after input. I was going to have another userform pop up with the graph and the number needed for the graph and have them input there.

    What about if your using a userform to run the macro and open another one will it still pause?

+ 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 code on Error then resuming once resolved
    By dp_galea in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2007, 05:08 PM
  2. Pausing a macro to wait for the results from the query
    By ldevrries in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2007, 10:55 AM
  3. Pausing a MACRO
    By accur8ly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2007, 01:06 AM
  4. Pausing Macro
    By Dohko in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-05-2007, 05:25 PM
  5. Pausing your code
    By Kevlar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2006, 04:38 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