Hi,
I am moving some code of mine over to a user control but I am receiving "Object variable or With block variable not set (Error 91)" when I click the command button.
If I change the set line toCode:Public UserControl1 As UserControl1 Private Sub cmdRoll_Click() UserControl1.Roll End Sub Private Sub Form_Load() Set UserControl1 = UserControl1 End Sub
I receive "Invalid use of New keyword".Code:Set UserControl1 = New UserControl1
Why is this happening?
Thanks,
Nightwalker




Reply With Quote