I have a userform, UserForm1.
In a module, I have the code:
When I initially ran the testform sub, the userform shows which is fine.
However, the moment I make some changes to the userform (e.g. I added labels, textboxes, etc), I can not run the test form sub. I keep getting debug error and it points to the
And when I click on reset button, it takes me to the userform1 - but al the changes I made were discarded althuogh I saved those changes before I ran the testform sub.
Why is this happening and what do I need to do save my changes and enable the sub to run?
Thanks
In a module, I have the code:
Code:
Sub testform()
UserForm1.Show
End Sub
When I initially ran the testform sub, the userform shows which is fine.
However, the moment I make some changes to the userform (e.g. I added labels, textboxes, etc), I can not run the test form sub. I keep getting debug error and it points to the
Code:
UserForm1.Show
And when I click on reset button, it takes me to the userform1 - but al the changes I made were discarded althuogh I saved those changes before I ran the testform sub.
Why is this happening and what do I need to do save my changes and enable the sub to run?
Thanks