ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Form shows but input not processed (https://www.excelbanter.com/excel-programming/434997-form-shows-but-input-not-processed.html)

headly

Form shows but input not processed
 
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



Bernie Deitrick

Form shows but input not processed
 
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


"headly" wrote in message
...
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






All times are GMT +1. The time now is 10:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com