How to create User Login Form in VBA and Excel (Step by Step Guide)

  Рет қаралды 181,600

TheDataLabs

TheDataLabs

Күн бұрын

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!

Пікірлер: 132
@mumbapatrick8958
@mumbapatrick8958 3 жыл бұрын
These tutorials are splendid and they have helped me big time. Thumbs up to all of you.
@alhassanmusah7242
@alhassanmusah7242 3 жыл бұрын
EXCELLENT TUTORIAL BEEN FOLLOWING UP EVERYTIME
@akhilsoman8167
@akhilsoman8167 3 жыл бұрын
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
@SameerAhmed-si2sg
@SameerAhmed-si2sg 2 жыл бұрын
Thanks a lot for this tutorial and effort. As always, very useful. Great bro
@caianevans7853
@caianevans7853 2 жыл бұрын
This was a great help, much appreciated!
@RajaGiri_tvpm
@RajaGiri_tvpm 2 жыл бұрын
I like your teaching and your video , I learn from your video and try to create . Thank you 👍
@jayprildejesus8407
@jayprildejesus8407 3 жыл бұрын
thank you bro. you make my work much easier and safe
@smokybench8540
@smokybench8540 4 жыл бұрын
Thanks!!! ...your tutorial was very helpful
@abhishekdas8503
@abhishekdas8503 3 жыл бұрын
Superb,I added this feature in the dynamic data Entry Form,Thank you
@kayjames2784
@kayjames2784 2 жыл бұрын
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.
@landgegaile6957
@landgegaile6957 3 жыл бұрын
thank you very much it helps me a lot. that was awesome.
@sanjeevkawan1668
@sanjeevkawan1668 4 жыл бұрын
Nice vedio....Thanks for the coding .... keep going
@durgeshmishra3986
@durgeshmishra3986 3 жыл бұрын
Thanks Mr Dileep, Finally i have done, Thanks a lot
@durgeshmishra3986
@durgeshmishra3986 3 жыл бұрын
Can i give read only access too?
@NR-mh9zj
@NR-mh9zj 4 жыл бұрын
Wonderful👌keep continue ur service👍
@thedatalabs
@thedatalabs 4 жыл бұрын
Thanks!
@jaspergapasin
@jaspergapasin 3 жыл бұрын
Very Nice 👍👍👍 and clear tutorial
@jeannettie7962
@jeannettie7962 3 жыл бұрын
Useful video. Keep it up!
@kailee6823
@kailee6823 3 жыл бұрын
thank you for this tutotial, by the way is there a way to bypass this login to open the workbook?
@astonduncan1263
@astonduncan1263 3 жыл бұрын
It worked! thank you
@dustyarcher
@dustyarcher Жыл бұрын
Thank you buddy very useful 💕 it!
@hajarasmidar2311
@hajarasmidar2311 2 жыл бұрын
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.
@douwefennema2437
@douwefennema2437 3 жыл бұрын
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
@sonnykhak1833
@sonnykhak1833 2 жыл бұрын
Good video. May God bless you.
@RASHiDALi143
@RASHiDALi143 2 жыл бұрын
Thanks Very Good tutorial,
@hakeemzahardi9207
@hakeemzahardi9207 3 жыл бұрын
The userform design is very nice and modern
@lamontbutler4590
@lamontbutler4590 3 жыл бұрын
Excellent Instructor
@DiwanSihrALbayan
@DiwanSihrALbayan 2 жыл бұрын
from egypt thank you very much
@sallytong241
@sallytong241 Жыл бұрын
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?
@Deepak_Singh1008
@Deepak_Singh1008 4 жыл бұрын
Hello would appreciate you if you make a small video on Excel VBA iif function.
@deepamanmappy
@deepamanmappy 3 жыл бұрын
I learn a lot thanks
@anjalinairu7346
@anjalinairu7346 4 жыл бұрын
Hey admin very use full vedio
@garyhorne1134
@garyhorne1134 2 жыл бұрын
This is great thanks. Is there a way of seeing who has logged in to view the worksheet. Thanks
@fragglegabo8427
@fragglegabo8427 4 жыл бұрын
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
@m-squaredcontractors9720
@m-squaredcontractors9720 4 жыл бұрын
Thanks for an awesome tutorial. Do you do consultation for a fee?
@nikhilbhor3933
@nikhilbhor3933 4 жыл бұрын
Nice video sir, I am going to add this feature to my userform
@nikhilbhor3933
@nikhilbhor3933 4 жыл бұрын
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?
@faramarzakhash
@faramarzakhash 5 ай бұрын
Thanks a lot for this video. This video very helpful for me......
@thedatalabs
@thedatalabs 5 ай бұрын
Thanks for your feedback!
@alessioframba1023
@alessioframba1023 3 жыл бұрын
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
@MohamedAboAbdo03
@MohamedAboAbdo03 8 ай бұрын
Thank you so much Sir
@charlesagyepong233
@charlesagyepong233 2 жыл бұрын
thank you for your video. how do i get the icons used in the video
@muychamnan9993
@muychamnan9993 3 жыл бұрын
Please sharing how to disable the control box (x) on the upper right side of the user form.
@aryankumar9784
@aryankumar9784 3 жыл бұрын
Really nice 👌👌 video
@AjaySingh-ll5qw
@AjaySingh-ll5qw 4 жыл бұрын
Really nice
@gilbertson372
@gilbertson372 3 жыл бұрын
Thanks bro 💖
@sazibahmed4563
@sazibahmed4563 4 жыл бұрын
you are awesome boss. i like you. stay safe.
@thedatalabs
@thedatalabs 4 жыл бұрын
Thanks! You too.
@JanusTheRealDeal
@JanusTheRealDeal 5 ай бұрын
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?
@franklinbabuparaiayyar6494
@franklinbabuparaiayyar6494 2 жыл бұрын
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
@deepakgautam8958
@deepakgautam8958 2 жыл бұрын
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😒😒
@yopiyuandani8710
@yopiyuandani8710 4 жыл бұрын
Hi, thx for this tutorial, pls develop document control system for oil & migas Project or construction Project
@thedatalabs
@thedatalabs 4 жыл бұрын
Please share the requirements with us. You can find the contact details in description box. Thanks!
@hakimj3995
@hakimj3995 3 ай бұрын
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,,,
@shahwanichannel9121
@shahwanichannel9121 3 жыл бұрын
EXCELLENT
@joven82
@joven82 4 жыл бұрын
Tnx sir!
@paolo-jaycamaing7714
@paolo-jaycamaing7714 2 жыл бұрын
Does it work when the Excel file is uploaded and shared in Google Drive?
@SimplifiedTuts
@SimplifiedTuts 2 жыл бұрын
Does is possible to verify login credentials by online server database.
@prediction2302
@prediction2302 4 жыл бұрын
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
@AbhishekKumar-dancevideos
@AbhishekKumar-dancevideos 2 жыл бұрын
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
@thedatalabs
@thedatalabs 2 жыл бұрын
Thanks for your feedback! You can write in any of the module. It's global variable.
@AbhishekKumar-dancevideos
@AbhishekKumar-dancevideos 2 жыл бұрын
@@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 🙏👍
@dema-3000
@dema-3000 3 жыл бұрын
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... ?!?
@abhay6276
@abhay6276 3 жыл бұрын
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..
@alializadeh8195
@alializadeh8195 Жыл бұрын
Thanks
@aryankumar9784
@aryankumar9784 3 жыл бұрын
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..😔😔
@mujeebn4080
@mujeebn4080 4 жыл бұрын
Sir please develope School managment system with monthly fee collection.
@kenbelen3470
@kenbelen3470 3 жыл бұрын
using the same form, how to grant access to a user on their data entry only?
@ibrahimmuhammad9509
@ibrahimmuhammad9509 4 жыл бұрын
nice
@carloscesar3922
@carloscesar3922 3 жыл бұрын
Hi! where did u get ur pictures from?
@martin_explore
@martin_explore 4 жыл бұрын
Nice, please add code if userform is open, then the worksheet is hidden, thanks
@vitaljunior7237
@vitaljunior7237 3 жыл бұрын
please can you tell me on your site download these images
@alcon3053
@alcon3053 3 жыл бұрын
I have a Developer tab, but no icons in it are available, how can I make them available to use it?
@dorjitshering9325
@dorjitshering9325 3 жыл бұрын
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)
@AbhishekKumar-dancevideos
@AbhishekKumar-dancevideos 2 жыл бұрын
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.
@abm5rajesh
@abm5rajesh Жыл бұрын
We wanted to create a multiple access app with use how can do ?
@terabergconsultants9697
@terabergconsultants9697 2 жыл бұрын
Hi, incase if i want login for each sheet, is that possible ?? could you share the codes pls...
@moubarakhalidou6418
@moubarakhalidou6418 3 жыл бұрын
Genius
@edoundema4426
@edoundema4426 Жыл бұрын
good morning pleas how did you link that user form with your table
@renudesai2532
@renudesai2532 3 жыл бұрын
Hello sir, if we develop using this can multiple user use this application at the same.
@thedatalabs
@thedatalabs 3 жыл бұрын
Yes, please watch this tutorial. Thanks! kzfaq.info/get/bejne/bLKjiNCk2bCziGw.html
@devendardev9497
@devendardev9497 3 жыл бұрын
Sir I'm getting Run-time error '424': Object required This is showing under WORKBOOK
@CristianGonzalez-ly8nu
@CristianGonzalez-ly8nu 2 ай бұрын
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
@tarunsamanta9919
@tarunsamanta9919 2 жыл бұрын
How to link this username to the database excel sheet submitted by column
@tonitoni9368
@tonitoni9368 2 жыл бұрын
Very good video Is it possible that several users can log in using their own account? thanks
@thedatalabs
@thedatalabs 2 жыл бұрын
Yes, that's possible and based on project type. Thanks!
@taylorwhitefall5408
@taylorwhitefall5408 4 жыл бұрын
Could u do this on statusbar like that "Your login attempt:2"
@thedatalabs
@thedatalabs 3 жыл бұрын
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!
@kaustavnath8898
@kaustavnath8898 3 жыл бұрын
But how do i control Log In Ids.... I may have 10 Data Entry Operators then How do I control the access.
@muhammadabdullah4379
@muhammadabdullah4379 4 жыл бұрын
😘❤
@abdul-latifahmed3215
@abdul-latifahmed3215 3 жыл бұрын
Not working for me. Getting error. Maybe, I have to try more. Thanks anyway for the tutorial video.
@ssedits4338
@ssedits4338 Жыл бұрын
Hi sir you add module 1 code but we can't see the full code pls tell the solution
@meatloaf8055
@meatloaf8055 2 жыл бұрын
Can I have a copy of module 1 code
@user-vu5lp9tz4q
@user-vu5lp9tz4q 2 жыл бұрын
I have multiple users. How do I add them?
@Thecomputerguide
@Thecomputerguide 3 жыл бұрын
can i make EXCEL LOGIN FORM USING VBA in excel file, in which i already done some VBA codes before.
@thedatalabs
@thedatalabs 3 жыл бұрын
Sure, you can add it in existing project as well. Thanks!
@Thecomputerguide
@Thecomputerguide 3 жыл бұрын
@@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.
@kofimaracktv
@kofimaracktv 9 ай бұрын
Hello i have designed the frontend but the validation is not working
@kofimaracktv
@kofimaracktv 9 ай бұрын
Please help me
@laxmanp3156
@laxmanp3156 3 ай бұрын
💌
@sudiptamondal6424
@sudiptamondal6424 2 жыл бұрын
how to setup restrict access using pc ip address or pc user name
@saujanyasubedi5302
@saujanyasubedi5302 2 жыл бұрын
If user cross the login form, the sheet will automatically get opened despite of seeking password. Please suggest how to solve this issue
@EchoVibeagain
@EchoVibeagain Жыл бұрын
After successfully done this job....the excel file did not close .what should I do
@melusikeith4886
@melusikeith4886 3 жыл бұрын
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
@thedatalabs
@thedatalabs 3 жыл бұрын
Please save this file with macro enabled extension (.XLSM) to retain the VBA code. Thanks!
@shawn83823
@shawn83823 3 жыл бұрын
hey friend im stuck when i try to debug it give me a error on LoginInstance what can it be ?
@simischaeffer8506
@simischaeffer8506 3 жыл бұрын
Maybe Option Explicit you must delete Option Explicit
@mallikarjunakambham7346
@mallikarjunakambham7346 3 жыл бұрын
Login instance is not working... can you please explain it again.
@michaelsvenson2456
@michaelsvenson2456 Жыл бұрын
There where some problems with the code so now I can´t open my file, even with the password, any way around it ?? 🙂
@roycetagram
@roycetagram 2 жыл бұрын
Excuse me which excel version has developer
@thedatalabs
@thedatalabs 2 жыл бұрын
It's 2016
@roycetagram
@roycetagram 2 жыл бұрын
@@thedatalabs thank you sir
@auwalamshi8980
@auwalamshi8980 Жыл бұрын
Hello, I followed the code but I locked myself out, and the system is not recognizing/accepting the password.
@auwalamshi8980
@auwalamshi8980 Жыл бұрын
What should I do now
@caianevans7853
@caianevans7853 2 жыл бұрын
I put the password and user in and click the button but nothing happens?
@vishalhegade1690
@vishalhegade1690 3 жыл бұрын
Need computer service center excel sheet
@dywaneturner7030
@dywaneturner7030 2 жыл бұрын
The Focus Mode, would not Release
@jralfmr
@jralfmr 3 жыл бұрын
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?
@thedatalabs
@thedatalabs 3 жыл бұрын
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!
@jralfmr
@jralfmr 3 жыл бұрын
@@thedatalabs I found out the cause. I used user instead of username..
@thedatalabs
@thedatalabs 3 жыл бұрын
Great, please subscribe our KZfaq channel. Thanks!
@dywaneturner7030
@dywaneturner7030 2 жыл бұрын
I Follow you code to the letter, and I got LOCK OUT OF MY FILE, THANKS!
@abm5rajesh
@abm5rajesh Жыл бұрын
Hello
@Khunryijduy
@Khunryijduy 10 ай бұрын
Popcom 🎉❤❤❤❤❤❤❤❤🎉😊❤😊😊😊🎉😂😂😂🎉
EASILY Make an Automated Data Entry Form in Excel
14:52
Kenji Explains
Рет қаралды 409 М.
Зачем он туда залез?
00:25
Vlad Samokatchik
Рет қаралды 2,9 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 23 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 75 МЛН
Unlock Excel Secrets: Magic Search Bar You NEVER Knew About!
17:59
PK: An Excel Expert
Рет қаралды 490 М.
How to Create a Login System in Excel Using VBA
18:50
DJ Oamen
Рет қаралды 37 М.
How to Create a Data Entry Form in Excel
34:30
Excel Macro Mastery
Рет қаралды 263 М.
Build a VBA Login System for Excel
32:25
TeachExcel
Рет қаралды 19 М.
Beautiful Registration form with Picture in Excel VBA | Web form look
53:03
PK: An Excel Expert
Рет қаралды 129 М.
UserForm with Multiple Option Buttons in Excel and VBA
18:33
TheDataLabs
Рет қаралды 103 М.