Hello,
I'm struggling with the next problem:
I made a Userform containing a textbox (textbox1) and Clickbutton.
I also created a classmodule (named checkinput).
This classmodule contains a subroutine Ispresent:
Sub ispresent(ByVal textbox As Msforms.textbox)
'code goes here
End Sub
The code for the userform contains a subroutine CommandButton1_Click:
Dim input As New checkinput
Private Sub CommandButton1_Click()
input.ispresent (textbox1)
End Sub
When i try to run the program i get an error message Error 424, Object required.
I don't know how to solve this problem.
Can anyone help me out.
Thx
I'm struggling with the next problem:
I made a Userform containing a textbox (textbox1) and Clickbutton.
I also created a classmodule (named checkinput).
This classmodule contains a subroutine Ispresent:
Sub ispresent(ByVal textbox As Msforms.textbox)
'code goes here
End Sub
The code for the userform contains a subroutine CommandButton1_Click:
Dim input As New checkinput
Private Sub CommandButton1_Click()
input.ispresent (textbox1)
End Sub
When i try to run the program i get an error message Error 424, Object required.
I don't know how to solve this problem.
Can anyone help me out.
Thx