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!

Комментарии • 132

  • @mumbapatrick8958
    @mumbapatrick8958 3 года назад +1

    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

  • @abhishekdas8503
    @abhishekdas8503 3 года назад

    Superb,I added this feature in the dynamic data Entry Form,Thank you

  • @jayprildejesus8407
    @jayprildejesus8407 3 года назад

    thank you bro. you make my work much easier and safe

  • @RajaGiri_tvpm
    @RajaGiri_tvpm 2 года назад

    I like your teaching and your video , I learn from your video and try to create . Thank you 👍

  • @caianevans7853
    @caianevans7853 2 года назад

    This was a great help, much appreciated!

  • @smokybench8540
    @smokybench8540 3 года назад

    Thanks!!! ...your tutorial was very helpful

  • @akhilsoman8167
    @akhilsoman8167 3 года назад +1

    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

  • @landgegaile6957
    @landgegaile6957 3 года назад +1

    thank you very much it helps me a lot. that was awesome.

  • @DiwanSihrALbayan
    @DiwanSihrALbayan 2 года назад

    from egypt thank you very much

  • @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.

  • @hakeemzahardi9207
    @hakeemzahardi9207 3 года назад

    The userform design is very nice and modern

  • @durgeshmishra3986
    @durgeshmishra3986 3 года назад +1

    Thanks Mr Dileep, Finally i have done, Thanks a lot

  • @jaspergapasin
    @jaspergapasin 3 года назад

    Very Nice 👍👍👍 and clear tutorial

  • @astonduncan1263
    @astonduncan1263 3 года назад +1

    It worked! thank you

  • @RASHiDALi143
    @RASHiDALi143 2 года назад

    Thanks Very Good tutorial,

  • @lamontbutler4590
    @lamontbutler4590 3 года назад

    Excellent Instructor

  • @dustyarcher
    @dustyarcher Год назад

    Thank you buddy very useful 💕 it!

  • @sanjeevkawan1668
    @sanjeevkawan1668 4 года назад +1

    Nice vedio....Thanks for the coding .... keep going

  • @deepamanmappy
    @deepamanmappy 3 года назад

    I learn a lot thanks

  • @hakimj3995
    @hakimj3995 Месяц назад

    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,,,

  • @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

  • @NR-mh9zj
    @NR-mh9zj 4 года назад +2

    Wonderful👌keep continue ur service👍

  • @sonnykhak1833
    @sonnykhak1833 2 года назад

    Good video. May God bless you.

  • @jeannettie7962
    @jeannettie7962 3 года назад

    Useful video. Keep it up!

  • @faramarzakhash
    @faramarzakhash 4 месяца назад

    Thanks a lot for this video.
    This video very helpful for me......

    • @thedatalabs
      @thedatalabs  4 месяца назад

      Thanks for your feedback!

  • @kailee6823
    @kailee6823 3 года назад

    thank you for this tutotial, by the way is there a way to bypass this login to open the workbook?

  • @nikhilbhor3933
    @nikhilbhor3933 4 года назад +1

    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?

  • @user-lf6yc6tq1f
    @user-lf6yc6tq1f 7 месяцев назад

    Thank you so much Sir

  • @anjalinairu7346
    @anjalinairu7346 3 года назад

    Hey admin very use full vedio

  • @Deepak_Singh1008
    @Deepak_Singh1008 4 года назад +2

    Hello would appreciate you if you make a small video on Excel VBA iif function.

  • @gilbertson372
    @gilbertson372 3 года назад

    Thanks bro 💖

  • @joven82
    @joven82 4 года назад +1

    Tnx sir!

  • @yopiyuandani8710
    @yopiyuandani8710 4 года назад +2

    Hi, thx for this tutorial, pls develop document control system for oil & migas Project or construction Project

    • @thedatalabs
      @thedatalabs  4 года назад +1

      Please share the requirements with us. You can find the contact details in description box. Thanks!

  • @m-squaredcontractors9720
    @m-squaredcontractors9720 3 года назад

    Thanks for an awesome tutorial. Do you do consultation for a fee?

  • @AjaySingh-ll5qw
    @AjaySingh-ll5qw 4 года назад

    Really nice

  • @garyhorne1134
    @garyhorne1134 2 года назад

    This is great thanks. Is there a way of seeing who has logged in to view the worksheet. Thanks

  • @sallytong241
    @sallytong241 Год назад +1

    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?

  • @fragglegabo8427
    @fragglegabo8427 4 года назад +2

    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

  • @alializadeh8195
    @alializadeh8195 Год назад

    Thanks

  • @aryankumar9784
    @aryankumar9784 3 года назад

    Really nice 👌👌 video

  • @JanusTheRealDeal
    @JanusTheRealDeal 4 месяца назад

    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?

  • @shahwanichannel9121
    @shahwanichannel9121 3 года назад

    EXCELLENT

  • @sazibahmed4563
    @sazibahmed4563 4 года назад

    you are awesome boss. i like you. stay safe.

  • @franklinbabuparaiayyar6494
    @franklinbabuparaiayyar6494 2 года назад +1

    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😒😒

  • @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 года назад +1

      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 🙏👍

  • @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

  • @moubarakhalidou6418
    @moubarakhalidou6418 3 года назад

    Genius

  • @ibrahimmuhammad9509
    @ibrahimmuhammad9509 4 года назад +1

    nice

  • @CristianGonzalez-ly8nu
    @CristianGonzalez-ly8nu Месяц назад

    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

  • @muychamnan9993
    @muychamnan9993 3 года назад +1

    Please sharing how to disable the control box (x) on the upper right side of the user form.

  • @SimplifiedTuts
    @SimplifiedTuts 2 года назад

    Does is possible to verify login credentials by online server database.

  • @charlesagyepong233
    @charlesagyepong233 2 года назад

    thank you for your video. how do i get the icons used in the video

  • @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

  • @mujeebn4080
    @mujeebn4080 4 года назад +8

    Sir please develope School managment system with monthly fee collection.

  • @paolo-jaycamaing7714
    @paolo-jaycamaing7714 2 года назад

    Does it work when the Excel file is uploaded and shared in Google Drive?

  • @muhammadabdullah4379
    @muhammadabdullah4379 3 года назад

    😘❤

  • @tonitoni9368
    @tonitoni9368 2 года назад

    Very good video
    Is it possible that several users can log in using their own account?
    thanks

    • @thedatalabs
      @thedatalabs  2 года назад +1

      Yes, that's possible and based on project type. Thanks!

  • @martin_explore
    @martin_explore 4 года назад +1

    Nice, please add code if userform is open, then the worksheet is hidden, thanks

  • @abhay6276
    @abhay6276 3 года назад +1

    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..

  • @carloscesar3922
    @carloscesar3922 3 года назад

    Hi! where did u get ur pictures from?

  • @edoundema4426
    @edoundema4426 Год назад

    good morning pleas how did you link that user form with your table

  • @abm5rajesh
    @abm5rajesh Год назад

    We wanted to create a multiple access app with use how can do ?

  • @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... ?!?

  • @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..😔😔

  • @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!
      ruclips.net/video/6LsUmstJOX8/видео.html

  • @vitaljunior7237
    @vitaljunior7237 3 года назад

    please can you tell me on your site download these images

  • @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.

  • @laxmanp3156
    @laxmanp3156 2 месяца назад

    💌

  • @alcon3053
    @alcon3053 3 года назад

    I have a Developer tab, but no icons in it are available, how can I make them available to use it?

  • @kenbelen3470
    @kenbelen3470 3 года назад

    using the same form, how to grant access to a user on their data entry only?

  • @terabergconsultants9697
    @terabergconsultants9697 2 года назад

    Hi, incase if i want login for each sheet, is that possible ?? could you share the codes pls...

  • @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.

  • @tarunsamanta9919
    @tarunsamanta9919 2 года назад

    How to link this username to the database excel sheet submitted by column

  • @devendardev9497
    @devendardev9497 2 года назад

    Sir I'm getting
    Run-time error '424':
    Object required
    This is showing under WORKBOOK

  • @taylorwhitefall5408
    @taylorwhitefall5408 3 года назад

    Could u do this on statusbar like that "Your login attempt:2"

    • @thedatalabs
      @thedatalabs  3 года назад +1

      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.

  • @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

  • @user-vu5lp9tz4q
    @user-vu5lp9tz4q 2 года назад

    I have multiple users. How do I add them?

  • @sudiptamondal6424
    @sudiptamondal6424 2 года назад

    how to setup restrict access using pc ip address or pc user name

  • @meatloaf8055
    @meatloaf8055 2 года назад

    Can I have a copy of module 1 code

  • @kofimaracktv
    @kofimaracktv 8 месяцев назад +1

    Hello i have designed the frontend but the validation is not working

  • @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

  • @Unlimitedful
    @Unlimitedful Год назад

    After successfully done this job....the excel file did not close .what should I do

  • @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

  • @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!

  • @caianevans7853
    @caianevans7853 2 года назад

    I put the password and user in and click the button but nothing happens?

  • @auwalamshi8980
    @auwalamshi8980 Год назад

    Hello, I followed the code but I locked myself out, and the system is not recognizing/accepting the password.

  • @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 RUclips channel. Thanks!

  • @dywaneturner7030
    @dywaneturner7030 2 года назад

    The Focus Mode, would not Release

  • @vishalhegade1690
    @vishalhegade1690 3 года назад

    Need computer service center excel sheet

  • @dywaneturner7030
    @dywaneturner7030 2 года назад

    I Follow you code to the letter, and I got LOCK OUT OF MY FILE, THANKS!

  • @abm5rajesh
    @abm5rajesh Год назад

    Hello

  • @Khunryijduy
    @Khunryijduy 9 месяцев назад

    Popcom 🎉❤❤❤❤❤❤❤❤🎉😊❤😊😊😊🎉😂😂😂🎉