I just have a one form app that when it completes it's routine I'd like it to simply rerun itself beginning with Form_Load. I'm sure there is a simple command I can utilize to do this, but I don't know it yet.
Yes ... you can just call Form_Load but that doesn't activate the sequence of other processes like Form_Activate and Form_Initialize. That may not be an issue for you but, if it is ...
Create a module with a Sub Main and make that your startup procedure. Then
Code:
Public KeepRunning As Boolean
Public Sub Main()
KeepRunning = True
Do While KeepRunning
myForm.Show vbModal
Loop
End Sub
Set "KeepRunning" to False in your form to terminate the process.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.