How to create User Login Form in VBA and Excel (Step by Step Guide)
HTML-код
- Опубликовано: 19 июн 2024
- This tutorial will demonstrate designing and coding of a User Login form or Login Window in Excel and VBA. In this tutorial, we will learn to create a beautiful Login Form in Excel and VBA. This is step by step process so you can easily create the login form.
#LoginForm #TheDataLabs
Please follow the below link to download the Excel file used in this video.
thedatalabs.org/how-to-make-l...
Data entry form tutorial link: • How to Create a Data E...
Please visit our website www.thedatalabs.org
Please contact us on thedatalabs@gmail.com
Thanks for watching!
Please like, share, comment and subscribe.
Have a great day!
These tutorials are splendid and they have helped me big time. Thumbs up to all of you.
EXCELLENT TUTORIAL BEEN FOLLOWING UP EVERYTIME
Superb,I added this feature in the dynamic data Entry Form,Thank you
thank you bro. you make my work much easier and safe
I like your teaching and your video , I learn from your video and try to create . Thank you 👍
This was a great help, much appreciated!
Thanks!!! ...your tutorial was very helpful
Hi The DataLabs, Thanks a lot for this tutorial and effort. As always, very useful. I used this to create a login page for the user form I made based on your previous videos. As you mentioned in the end of the video, the login page fires up only when the user clicks the "enable macro" message in excel. But before macro is enabled, although the Data entry form icon in the sheet 1 is not usable, the user can easily open the Database in the 2nd sheet and make changes in the entries. Is there a way to allow access to both Data entry form sheet (Sheet 1) and the Database (Sheet 2) sheet only after the user enters the correct credentials? If yes, what changes in the code (and where? e.g, user form, worksheet, module coding page) should it be done? It will be really helpful if you could provide a response. Thanks
Thanks a lot for this tutorial and effort. As always, very useful. Great bro
thank you very much it helps me a lot. that was awesome.
from egypt thank you very much
Great tutorial. How do we create usernames and passwords for more than one person - assuming two, three or more people will work on the userform, add and modify information in it. Your kind help very much appreciated.
The userform design is very nice and modern
Thanks Mr Dileep, Finally i have done, Thanks a lot
Can i give read only access too?
Very Nice 👍👍👍 and clear tutorial
It worked! thank you
Thanks Very Good tutorial,
Excellent Instructor
Thank you buddy very useful 💕 it!
Nice vedio....Thanks for the coding .... keep going
I learn a lot thanks
Hi Dilip, thanks for your useful & clear explanations.
May you kindly forward the codes regarding the following: NEED TO CAPTURE THE USER ID FROM THE LOGIN FORM TO AUTOMATICALLY INPUT IT INTO A DATA ENTRY FORM. Thanks,,,
Hi sir, what a wonderful sharing over here. Can you do a tutorial on how to put in a file attachment for the data entry form.
Thank you for sharing. It is very interesting to find out this possibility. Is it possible to create a login connected to a powerpoint presentation where students login, read the pages and before exiting the powerpoint it saves where they left, so that the next time they login it will continue from the last page? I make very long powerpoint... sometimes up to 120 pages.
Kind regards, Douwe
Wonderful👌keep continue ur service👍
Thanks!
Good video. May God bless you.
Useful video. Keep it up!
Thanks a lot for this video.
This video very helpful for me......
Thanks for your feedback!
thank you for this tutotial, by the way is there a way to bypass this login to open the workbook?
Nice video sir, I am going to add this feature to my userform
Sir my userform runs a little slow while adding data to worksheet, I have lots of things going on while doing it, like sorting, copying and pasting the data, can you help me to fix it?
Thank you so much Sir
Hey admin very use full vedio
Hello would appreciate you if you make a small video on Excel VBA iif function.
Thanks bro 💖
Tnx sir!
Hi, thx for this tutorial, pls develop document control system for oil & migas Project or construction Project
Please share the requirements with us. You can find the contact details in description box. Thanks!
Thanks for an awesome tutorial. Do you do consultation for a fee?
Really nice
This is great thanks. Is there a way of seeing who has logged in to view the worksheet. Thanks
Dear Sir, Thank you for your video. I have one tiny question about opening the form. I have encountered a problem before the login form show up. The application shows up first in just one second then the login form. Is it possible not to show the entire application before the login form show up?
Hi,
Thanks for this nice little tutorial.
I have a question about the Logins.
Is it possible to create an Login tracker how shows me witch user was at what date and time logged in ?
Thanks in advance
Bernhard
Thanks
Really nice 👌👌 video
Nice and useful video! However, what if I need to password protect only some fields of a userform (like an ID for instance), to prevent unauthorised editing of sensible data?
EXCELLENT
you are awesome boss. i like you. stay safe.
Thanks! You too.
Hi! Dilip!
This is an excellent tutorial. It's very much useful.greetngd to you. Superb 👍👏👏👏👌😎
& Also some doubts are there. Can I ask you? Dilip
I emailed but did not get any response for a month still waiting. I did one Data Entry register but have just minor issue I could not able to save file when I click on save click button. Still fighting for it🙁 really want to save the entry made but all click button work except save button😒😒
Hello Very nice and really like the way of explaining the thinfs in details. However I would like to know that I have severak module in my worksheets so where should I write "Public LoginInstance As Integer". As you have 1 module only . Thanks in advance
Thanks for your feedback! You can write in any of the module. It's global variable.
@@thedatalabs Yes I have done in same Workbook. It's working fine... Many thanks and really appreciate your work. One important thing would like to discuss with you that I have 1 more form and VBA code for hiding all the sheets if in case someone use Shift key or bypass the macro. So my macro now ask for Login I'd and then one more form to view worksheets or exit. Then user can view the worksheet. If user bypass the macro the user will not be able to view the sheets. So I want to club both the macro... If you can let us know then we can discuss further.
Thanks it can help your other subscribers too 🙏👍
First of all, nice video;
secondly, I have a question. I have userform in excel which asks user to enter user id and password. I want a to have "Remember Me" check button on my userform which will remember user details and he wouldn't have to enter user id and password again and again. Can please provide me with an example code. Thanks
Genius
nice
Hi Dilip, congrats working fine but I run through Linux and surprised that works but the login it's optional, I mean you can closing window or enter credentials, Do you know that? 🤯 In that case if you open a workbook in Linux you avoid this security. I hope you can answer me.thanks alot
Please sharing how to disable the control box (x) on the upper right side of the user form.
Does is possible to verify login credentials by online server database.
thank you for your video. how do i get the icons used in the video
Sir I think it is more useful if user can create own id and password his/ her choice .id and password save in computer head
Sir please develope School managment system with monthly fee collection.
Does it work when the Excel file is uploaded and shared in Google Drive?
😘❤
Very good video
Is it possible that several users can log in using their own account?
thanks
Yes, that's possible and based on project type. Thanks!
Nice, please add code if userform is open, then the worksheet is hidden, thanks
Why do we need to creat login page or data entry if there is Google form...anyone can tell me.? In the Google form we can easily collecte data and it user-friendly too..
Hi! where did u get ur pictures from?
good morning pleas how did you link that user form with your table
We wanted to create a multiple access app with use how can do ?
When I open the excel file, Excel is asking me to Enable Contect (same like on the video). But if I don't enable it, then I can do everything and no need to login. If I login, then I don't see the sheets... ?!?
Can you please tell me if we want to track time of login and logout but it should be added in login button...
Please help..😔😔
Hello sir, if we develop using this can multiple user use this application at the same.
Yes, please watch this tutorial. Thanks!
ruclips.net/video/6LsUmstJOX8/видео.html
please can you tell me on your site download these images
Thank you very much for the codes but I have one problem. How to close the login form ? Suppose if someone accidentally open it and doesn't know the password then the login form won't close, it stays there on the computer screen. (I have disabled the X button to protect my worksheet)
As you can see in the tutorial itself Mr Dilip has already explained there. A place where CmdClear is explained you can write the code for closing the file. It's written in video. You have to write by pausing the video. Watch carefully you will understand. You can also add an extra close command button.
💌
I have a Developer tab, but no icons in it are available, how can I make them available to use it?
using the same form, how to grant access to a user on their data entry only?
Hi, incase if i want login for each sheet, is that possible ?? could you share the codes pls...
can i make EXCEL LOGIN FORM USING VBA in excel file, in which i already done some VBA codes before.
Sure, you can add it in existing project as well. Thanks!
@@thedatalabs but how I can add...
Means I have created a STUDENT REGISTERATION FORM using VBA now my requirements is that excel sheet open after login access.
How to link this username to the database excel sheet submitted by column
Sir I'm getting
Run-time error '424':
Object required
This is showing under WORKBOOK
Could u do this on statusbar like that "Your login attempt:2"
Please use the below code. Replace the 'LoginAttempt' with the variable used in code.
Application.Statusbar="Your login attempt:" & LoginAttempt
Write the below code to clear the Statusbar before exiting from Sub Procedure.
Application.Statusbar=False
Thanks!
But how do i control Log In Ids.... I may have 10 Data Entry Operators then How do I control the access.
Not working for me. Getting error. Maybe, I have to try more.
Thanks anyway for the tutorial video.
Hi sir you add module 1 code but we can't see the full code pls tell the solution
I have multiple users. How do I add them?
how to setup restrict access using pc ip address or pc user name
Can I have a copy of module 1 code
Hello i have designed the frontend but the validation is not working
Please help me
If user cross the login form, the sheet will automatically get opened despite of seeking password. Please suggest how to solve this issue
After successfully done this job....the excel file did not close .what should I do
hey friend im stuck when i try to debug it give me a error on LoginInstance what can it be ?
Maybe Option Explicit you must delete Option Explicit
Login instance is not working... can you please explain it again.
There where some problems with the code so now I can´t open my file, even with the password, any way around it ?? 🙂
Excuse me which excel version has developer
It's 2016
@@thedatalabs thank you sir
why is it when l save my project when l am done coding and l close excel, when l open it again its just blank, no login or whatsoever
Please save this file with macro enabled extension (.XLSM) to retain the VBA code. Thanks!
I put the password and user in and click the button but nothing happens?
Hello, I followed the code but I locked myself out, and the system is not recognizing/accepting the password.
What should I do now
I tried create one using this video, however everytime I try to login using the same username and password it just ends up not accepting the password. The invalid login credentials kept on popping. I even double checked the codes and tried changing it but it keeps denying access to the sample file I am experimenting with. How can I fix that?
Please check the condition which you are using to match the credentials. Share the line of code so that we can go through and suggest you the fix. Thanks!
@@thedatalabs I found out the cause. I used user instead of username..
Great, please subscribe our RUclips channel. Thanks!
The Focus Mode, would not Release
Need computer service center excel sheet
I Follow you code to the letter, and I got LOCK OUT OF MY FILE, THANKS!
Hello
Popcom 🎉❤❤❤❤❤❤❤❤🎉😊❤😊😊😊🎉😂😂😂🎉