+ Reply to Thread
Results 1 to 5 of 5

user input of password for username

  1. #1
    Forum Contributor
    Join Date
    11-22-2006
    MS-Off Ver
    2010
    Posts
    201

    user input of password for username

    Hi all,

    I am designing a spreadsheet where the network username will identify each user who enters the spreadsheet.

    I would like each user to be able to create a password the first time they enter the file, this would be saved on a worksheet called, for example, Passwords. Read access to this file should be via password only.

    My questions are:

    Can anyone help write the code to prompt the user to enter a password which would then save in the password sheet against their username.
    The prompt would only be on their first time as after that it would be saved in the worksheet.

    Saving on exit would require them to enter their password again, validation of this would be via looking up the password sheet.


    Additionally, i foresee a problem with the password sheet itself being password protected. For example can Excel allow saving to this location via macro without the need to enter the password but not allow anyone to view the actual sheet without having first entered the password ?

    Many thanks for all your help.

  2. #2
    Registered User
    Join Date
    12-15-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: user input of password for username

    Are you defining the list of people that can set up a password? What about just using a master password that the macro will call up for saving the workbook only if it can see your name in the list. You don't really need passwords for individual users. The way to get around the needing to unprotect the sheet that holds the passwords is to a) hide but don't lock the sheet, b) protect the workbook (including structure) after you have hidden the sheet and c) don't ever try and select a cell on the sheet with your macro, just write to and collect data from it directly.
    If I helped you today please rate me

  3. #3
    Forum Contributor
    Join Date
    11-22-2006
    MS-Off Ver
    2010
    Posts
    201

    Re: user input of password for username

    hi LMVK99,

    The need for individual passwords is to limit what users can see. For example, user sw11 will only be able to see data relating to sw11 and not data relating to
    aa11 or bb22.
    I guess an alternative would be to make viewing sw11's records dependent on the windows username being sw11.

    Any help gratefully received.

    thanks

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: user input of password for username

    See if you can adapt this
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Contributor
    Join Date
    11-22-2006
    MS-Off Ver
    2010
    Posts
    201

    Re: user input of password for username

    Thank you Roy, i will have a look and get back to you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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