Hi,
I have a userform and a module with macro button. Is this the right way to
call module from OK Button code ?
In my userform (Form name is MyForm), OK button has following code
Private Sub OKButton_Click()
....
....
InputA = Me.ComboBox1.Value
InputB = Me.ComboBox2.Value
Module1.MyTest
End Sub
In my module, I have
Option Explicit
Public InputA As String
Public InputB As String
sub MyTest()
....
....
MyForm.Show
....
some function here to compare with InputA and Input B
....
End Sub
If I run, the debug code will stop at "MyForm.Show".
What is wrong ?
Thanks.
Magix
Bookmarks