+ Reply to Thread
Results 1 to 4 of 4

Calling SubRoutines

  1. #1
    Registered User
    Join Date
    08-18-2007
    Location
    Baton Rouge, LA
    Posts
    16

    Calling SubRoutines

    Good Afternoon All,

    I have a subroutine that simply calls 5 other subs. I need to have each sub complete before the next is called. Maybe somthing like:

    call subsub
    wait for subsub to complete
    call subsub2
    wait for subsub2 to complete
    etc

    Can somone point me in the right direction to do?

    Thanks in advance,
    Di

  2. #2
    Registered User
    Join Date
    08-18-2007
    Location
    Baton Rouge, LA
    Posts
    16
    Actually what may be better is if someone can tell me how to see if a command box is still open. The subs I call open a cmd box, run an application then the command box closes.

    Thanks again for any help,
    Di

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    diannk,

    Please read forum rules and message to cross posters below. Then add the link to the cross post

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

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

    You should post your code. When a dialog (message box) is displayed, it prevents you from doing anything in the application that called it until you respond to it. So, it isn't possible for your code to proceed and call another sub until you have responded to the dialog and that dialog has closed. The only exception to this would be if you created your dialogs with user forms and had set the Modal property to False.

    Sincerely,
    Leith Ross

+ 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