LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
SS SS is offline
external usenet poster
 
Posts: 32
Default Exiting Multiple Subs?

My program will run and call Step 1 (below)


Sub Step1()

Call GetMasterList
Call GetUnschedMaster


This will then call the sub GetMasterList

Sub GetMasterList()
Dim FileName As String

FileName = ""

Response = MsgBox("Locate Master Work Order List For This Week.", vbOKOnly,
"Master Work Order List")

FileToOpen = Application _
.GetOpenFilename("Excel Files (*.xls), *.xls")
If FileToOpen = False Then
Call Cleanup_Toolbars
frmRunStyle.Show
Exit Sub
End If


If the following portion of the above code is executed:

If FileToOpen = False Then
Call Cleanup_Toolbars
frmRunStyle.Show
Exit Sub
End If

Then the program will do some functions and eventually return to a start
point.

If the user then goes through the steps and gets to sub Step1 again, it will
immediately jump to
Call GetUnschedMaster

How do I get it to rerun the Call GetMasterList????

Thanks !
SS

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining two Subs Petitboeuf Excel Discussion (Misc queries) 6 April 27th 06 03:42 PM
ending subs [email protected] Excel Programming 2 May 17th 05 06:13 PM
Variable holding across multiple subs? Mark Excel Programming 9 April 7th 05 07:45 PM
Private subs Flima Excel Programming 1 January 7th 05 10:05 PM
Stringing Subs Randal W. Hozeski Excel Programming 2 May 28th 04 04:05 PM


All times are GMT +1. The time now is 11:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"