+ Reply to Thread
Results 1 to 5 of 5

Is this even possible? Userform login - Change password userform box

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    42

    Is this even possible? Userform login - Change password userform box

    I have a small app that uses a login system to allow different users access to certain sheets and makes all other sheets veryhidden, now I recently had one of the users come to me telling me they forgot their password and would like me to create a new one, now this is not a problem as I am down as the administrator and have access to all sheets but what I would like to do is create a small userform that enables the logged in user to request a new password, the userform must generate a random 6 digit number, populate it to a specific cell on the admin sheet then send them it in an email and/or show them it via a popup message box?

    thanks guys,

    Chris.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Is this even possible? Userform login - Change password userform box

    Something like:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Is this even possible? Userform login - Change password userform box

    Assuming you use Outlook for email, then this includes sending an email:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Is this even possible? Userform login - Change password userform box

    I see a security issue.

    Bob forgets his password.
    You get an email requesting a new password. You believe that the email was from Bob so you reset the password.

    You want to replace part 2 with a VB routine.

    How is the VB routine going to do the "believe the email was from Bob" part? It sounds like you are setting up a system whereby everyone can have anyone's password changed.

    The email notification would help with that, but how sensitive is the data on the VBA password protected sheet.
    How many people with quirky senses of humor work at this place?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  5. #5
    Registered User
    Join Date
    01-29-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Is this even possible? Userform login - Change password userform box

    Olly, Thanks for the code, the only problem is that the password isn't your standard 'protect sheet' password, it is a userform login system that checks passwords in cell next to username on an admin sheet, if both match then the workbook opens and gives access to certain sheets based on which user logged in. I have uploaded a copy of the workbook to an online file uploader as it exceeds the 1mb limit. rest assured, the file is completely safe. http://www.filedropper.com/managementtestv1

    Mikerickson, regarding the email security concerns. The workbook is stored on a secure network that only 10 people have access too, each with their own windows login and company email address. What I need is a userform that allows the user to select their workbook login name from a listbox on the reset password userform, the command button needs to generate a random 6-digit number and populate the cell next along from the username matched with the one selected on the reset password userform, it will also automatically send an email through outlook to a specific email address which will be determined by which name was selected on the listbox in the reset password userform. So say for example Matt Brown logs into windows, opens the workbook then instead of logging in he closes the login userform and presses the reset password button which in turn opens the reset password userform. Once Matt Brown selects his name from the listbox and pressed reset password the email will be sent to Matt Browns email address from his own email address. While typing this I have noticed the security issue, if say Ian selects Matt's name the email will still be sent to Matt but it will appear in Ian’s sent items therefor giving him Matt's new password! IS there anyway the email can automatically be deleted and deleted from the trash in outlook which prevents Ian from seeing the password? The department is pretty solid with no dicking around but still better to have all corners covered just in case.


    FYI: All I have removed all company logos and set passwords to 1234. Login as username: Admin. Password: 1234

+ 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. Change password from userform
    By Mart Marti in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-08-2015, 04:03 PM
  2. Userform with Login and Password (with limited number of entry for password)
    By bhavsarankit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2014, 03:53 PM
  3. Verify Password/Login Userform to worksheet Help
    By jvolaski in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2014, 09:12 AM
  4. [SOLVED] Password for custom userform login only works with text passwords
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2014, 06:45 PM
  5. Username/Password Login userform code
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2014, 02:43 PM
  6. How to create a password login through a userform
    By xia0jj in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-10-2014, 05:59 AM
  7. [SOLVED] VBA userform change password
    By Hilton1982 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-17-2012, 02:29 AM

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