Form shows but input not processed

H

headly

I have multiple procedures; So i set up a master to call the sub procedures,
then I show a form to get user input and call more procedures. Clicking OK on
the form does not appear to trigger the cmdOK_button click event and write
the value to a cell on a temp worksheet, and worse, the master continues to
procedures 3 and 4 without the value from the form call; where did i go wrong?

sub master()
call procedure1
call procedure2
frmUserInput.show
call procedure3
call procedure4
end sub
 
B

Bernie Deitrick

headly,

Call Procedure3 and 4 from the form's terminate event.


sub NewMaster()
call procedure1
call procedure2
frmUserInput.show
end sub

Private Sub UserForm_Terminate()
call procedure3
call procedure4
End Sub

HTH,
Bernie
MS Excel MVP
 

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

Top