Adding a control to a User Form

Adding a control to a User Form

Post by scantor14 » Wed, 19 Oct 2005 04:15:13



Can anyone tell me why, on some occasions, that after I add a control to
a User Form, e.g. a checkbox whose name is chkTest, and then go to View
Code, the following code which should appear, does not?


Code:
--------------------
Private Sub chkTest_Click()

End Sub
--------------------


No matter what I do, it never shows up.


--
scantor145
------------------------------------------------------------------------
scantor145's Profile: http://www.yqcomputer.com/
View this thread: http://www.yqcomputer.com/
 
 
 

Adding a control to a User Form

Post by VG9tIE9naW » Wed, 19 Oct 2005 05:27:04

I haven't had that problem if I double click on the check box in the VBE.
Anyway, it is easy enough to get it. In the dropdowns at the top of the
Userform Module, in the left dropdown select chkTest and in the right
dropdown select Click (if it hasn't already put in the declaration).

--
Regards,
Tom Ogilvy