Input to Form during Code Execution

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

While code is running, is there a way to have a form showing on the screen
that will allow input; that is, a check box that can be checked, or option
button that can be selected, or a command button that can be used to set a
parameter.

Specifically, as the code executes and updates fields on the form, I'd like
to be able to stop execution (using a command button), look at the data on
the form, then resume execution (w/o using the Esc key).

Is this possible?
 
Here is Microsoft's example dor DoEvents:
' Create a variable to hold number of Visual Basic forms loaded
' and visible.
Dim I, OpenForms
For I = 1 To 150000 ' Start loop.
If I Mod 1000 = 0 Then ' If loop has repeated 1000 times.
OpenForms = DoEvents ' Yield to operating system.
End If
Next I ' Increment loop counter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top