Macro that waits for sub to finish

Z

zac

hello,
I've setup a macro to run using VBA and/or VB using the
A.DoCmd.RunMacro "MacroName" proceeded by an A.DoCmd.Quit.
The Macro runs a series of different Functions using
Runcode - Function Name - Function(), one of which takes
an hour and a half to finish. How do I setup VB(A) to
wait for each Runcode FunctionName() to finish before
ending the VB(A) session that kicks off the Macro that
runs the individual functions?

desparate,
Zachary
 
Top