Login.
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Login.

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I have a worksheet with a photo on it with a macro attached that unhides a worksheet with that particular persons details on it. What code would I need to add to the macro that unhides the worksheet but before that would prompt the user for a login/password otherwise if they do not know the login/password leave the user on the worksheet with the photo on it?

  2. #2
    MrExcel MVP Al Chara's Avatar
    Join Date
    Feb 2002
    Location
    Newark, Delaware
    Posts
    1,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    How about something simple, like the following code:

    password = InputBox("Enter Password")
    If password = "YourPassword" Then Worksheets("Sheet1").Visible = True

    Substitute your password for YourPassword and your sheet for Sheet1.

    Best regards,
    Allan Chara
    http://www.mrspreadsheets.com

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Many thanks Al it works well.

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com