Forum Discussion
4 Replies
- tristaanogreEsteemed Contributor
What is "Root_blahblahblah"? Is that the name of your user form? If so, basically, what this means is that your user form has a bit of code or test associated with the "OnHide" event named "AUT_OnHide". The error message basically says that either the code "AUT_OnHide" could not be found OR it is expecting a certain number of parameters that you are not passing it.
To see what's going on, open up the user form for editing. In the right side of the screen, there's a list of properties. If you have a component selected, you can get to the form properties by selecting [User form] from the drop down box.
Once you do so, you should see two options, one like a lightning bolt. Click that... this should bring up your list of event and event handlers on the form
Whatever is in the box next to "OnHide", that's the script routine that is being attempted to run when your form is hidden, either by closing it or setting "Visible" to false or whatever.
- MaheshIllurOccasional Contributor
Hey , I did check earlier, yes the event was missing.
Not sure how I ignored this. Thanks a lot for suggestion.
It is resolved now.
- shankar_rCommunity Hero
How are calling the user form?, What are the Events you are tagged for the user form that you are using?
- MaheshIllurOccasional Contributor
Hi Shankar,
Something like below-
Public Function RunTest
Userforms.AUT.ShowModal
mr = Userforms.AUT.ModalResult
End Function
Evets are : OnClick, OnChange,OnShow