I have created a program to perform a calculation on data input into a userform. When I click on the "Calculate" button it is supposed to run the calculation and then show the user the result in a message box. When they click "ok" the message box should go away and just leave the form showing. For some reason, when I click on "ok" it loops back through the click event handler again and shows the message box with the result again. It does this 4 times before finally going away for good. Is there some easy reason why this might be happening?
The click event is handled within my class as a Public WithEvents object. The code is:
Calculatesub is here:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Bookmarks