Coding for Submit Button

Shweta

Well-known Member
Joined
Jun 5, 2011
Messages
514
Hi All,

I have created a userform in VBA for user ID and password.
I placed a commandbutton on my excel sheet when a user click on this commandbutton, a userform will get opened where he needs to enter his user Id and password and press the submit button and only after that he will be able to see the excel sheet data.

Now I am not getting what should be the coding for submit button.

Please help me out

Thanks
Shweta
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Right-click the submit button on the userform in design mode and View Code.
 
Upvote 0
Thanks Ruddle but my question is what should be the coding for submit button so that an user can view the data on excel.
 
Upvote 0
You might direct the user from a sheet that everyone can see, to a sheet you can only see after the successful login.
 
Upvote 0
Why are you asking the user to enter his userid and password in a userform? Didn't he do that already when he logged in to Windows?
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top