+ Reply to Thread
Results 1 to 6 of 6

USER/LOGIN to different sheets

  1. #1
    Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    220

    USER/LOGIN to different sheets

    Hey everyone

    I havent been on here for a while but I hope someone can help me.

    I am using the following code on a userform to force the users to 'log in' to view the sheets. I used a Auto Open macro to bring up the form when the file is opened.

    Please Login or Register  to view this content.
    This all works fine.....HOWEVER....

    I need to make it so that if a user logs in using the name 'Simon' they would only see the 'Simon' sheet. And the same for all of the other users.

    Any ideas on how I can mod this code to do that for me??

    Any help is much appreciated

    Simon

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Take a look at this earlier post
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    220

    .

    sorry roy but im not the most skilled with excel so im gna need abit more prompting than that...if possible?

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I've amended the example to open a sheet named Roy. So pick the user Roy & enter the correct password - y. The sheet will be displayed
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    220
    excellent Roy

    All i had to do was take the (Me.usernametextbox.Text) and put it was the sheet to be displayed when the user entered the correct info and clicked Login.

    Works perfectly

    Thankyou

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    You can also rate the answer by using the Scales Icon in the Toolbar of the answer

+ 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