+ Reply to Thread
Results 1 to 3 of 3

Userform Login on userform and disabling/enabling userforms controls

  1. #1
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Userform Login on userform and disabling/enabling userforms controls

    Hi, I am trying to create an userform that promts the user to login and if the user enters the correct username and password the userform controls are enabled.

    At the moment I am the only user so that I could use only password to login.

    I want help with how to create the login and if the correct username/password OR the correct password is entered I want to enable all controls.

    With controls I mean the multipage tabs. I would also like to logout and save all data from the userform into my spreadsheet and close/unload the userform.

    userformhelp.png

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Userform Login on userform and disabling/enabling userforms controls

    Try setting the control visible to false when loading and true when the password is correct

    I would think a password useform would be easier, if the password is corrdct then show the userform.

    Check it out
    https://youtu.be/-2UoU-Yu-Dk
    Last edited by davesexcel; 02-23-2019 at 10:27 AM.

  3. #3
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Userform Login on userform and disabling/enabling userforms controls

    Hi davesexcel,

    thank you for your reply. I checked your link out and I am going to watch more of your videos.

    I am trying to only have 1 userform but I like the suggestion to hide controls when the password isn't entered.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding controls to Userform from another Userform
    By AdiK in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-09-2017, 11:49 AM
  2. Is this even possible? Userform login - Change password userform box
    By chrismccarthy17 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2016, 10:47 AM
  3. [SOLVED] Userform Controls shortcut - close userform by escape key
    By ag273n in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2014, 06:23 PM
  4. "Strange" behaviour when programatically disabling/re-enabling commandbar controls
    By blackworx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2011, 12:49 PM
  5. Disabling Close on Userform
    By Andrew Hicks in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-19-2007, 10:15 AM
  6. Save not enabling in VBA Userform
    By ronnav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2007, 08:42 PM
  7. Userforms: Disabling - Enabling the X
    By Lauri in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2006, 02:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1