I have a user form in Excel 2000, I called it myUserForm.
In order to have a button on the toolbar that opens this userform, I created a one-liner as follows:
<code>
Public Sub showForm()
myUserForm.Show vbModal
End sub
</code>
I put this in the ThisWorkBook Object
I assigned the button to this macro.
When I click on the button, I get this error message:
Invalid Procedure call or argument
What am I doing wrong?
______________________________________
Do not expect the truth from a woman.
Pretending is part of her charm.
___________________________________
Eman_2005
Technical Communicator
In order to have a button on the toolbar that opens this userform, I created a one-liner as follows:
<code>
Public Sub showForm()
myUserForm.Show vbModal
End sub
</code>
I put this in the ThisWorkBook Object
I assigned the button to this macro.
When I click on the button, I get this error message:
Invalid Procedure call or argument
What am I doing wrong?
______________________________________
Do not expect the truth from a woman.
Pretending is part of her charm.
___________________________________
Eman_2005
Technical Communicator