Forum Discussion
Running VBA code after clicking on a UserForm 'image'
- Apr 28, 2021
There is a textbox named TextBox1 on top of the Password text box.
So you actually enter the password in TextBox1, and the Password text box remains empty. Hence the message that the login information is incorrect.
Apologies for the delayed response, thanks for the reply as always.
I've gone ahead and created a simplified Excel file that has both of the UserForms, 'frmLogin' (One giving me issues) and then one 'frmMainMenu' that should pop up when the correct login information is given and 'Login' is selected in the login userform. I annotated all of the buttons within the code if that helps find the issue.
I removed the functionality of every other button from the main menu, so there should be minimal code to hopefully find a solution.
All I need is to somehow go from entering in the username: fhwa and password: 1234 in the frmLogin, then selecting the 'Login' green button/picture, then the login form will close itself and the main menu will pop up.
Thanks again for the help.
Ryan
There is a textbox named TextBox1 on top of the Password text box.
So you actually enter the password in TextBox1, and the Password text box remains empty. Hence the message that the login information is incorrect.
- JonPeltierMay 06, 2021MVPSometimes that happens if I hold Ctrl to select multiple controls. If I move the cursor slightly while clicking on a control, I can end up with duplicate controls that line up perfectly with the originals but obscure them.
- ryanbarton324May 03, 2021Copper ContributorHansVogelaar
Oh my, how embarrassing.
I deleted that extra TextBox and now it works as intended. Not sure how that extra TextBox got there but that definitely explains the problems.
Thank you for all the help on this! Hopefully I won't make the same mistake in the future.
Best Regards,
Ryan