+ Reply to Thread
Results 1 to 6 of 6

Call user form for logged in user's cell only

  1. #1
    Registered User
    Join Date
    03-11-2011
    Location
    Dublin
    MS-Off Ver
    Excel 2007
    Posts
    17

    Smile Call user form for logged in user's cell only

    Hi
    I have a spreadsheet that calls user form once cell from range A1:A20 selected,these correspond to the users names.
    At present whoever's logged in can select any users name from range and have user form appear.
    Is it possible to only allow the logged in user to select their own name from the range and have the user form appear.
    Sorry for any earlier confusion.
    Last edited by Spagbog; 09-11-2011 at 10:37 AM. Reason: Incorrect description in title

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Disable Application Events

    I am really not clear on your data, or what that code is supposed to do, but is the username data the same as their login name?

  3. #3
    Registered User
    Join Date
    03-11-2011
    Location
    Dublin
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Disable Application Events

    Hi Bob
    Thanks for reply
    Yes the username will be the same as the log in name,at the moment whoever logs in can access and change all users holiday details.What I'm looking for is that the user can only access and change there own holidays.Once the user logs in there username is displayed in cell C1 if this is any help.The code calls up the holiday form from which they select their request then populates spreadsheet once OK selected.
    Hope this helps
    Thanks

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Call user form for logged in user's cell only

    Something like

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-11-2011
    Location
    Dublin
    MS-Off Ver
    Excel 2007
    Posts
    17

    Smile Re: Call user form for logged in user's cell only

    Hi Bob
    Thanks for your time I changed the Worksheet_change to WorksheetSelection_change and code is perfect,
    Excellent result.
    Best Regards
    Spagbog

  6. #6
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Call user form for logged in user's cell only

    Please Login or Register  to view this content.



+ 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