+ Reply to Thread
Results 1 to 3 of 3

Show row base on Login

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Show row base on Login

    Hi, i have a sample cashflow excel. We have different people keying in Payment and Receipt. The balance is Confidential. I want to have a "log in" where Payment people can only view Row 1 (the date) and Row where there is a "P" in Column A. Another "Log in" for Receipt people where they can view only Row with a "R" in Column A. Also, a Log In where it can view everything. Of coz, Payment and Receipt people shd not be able to Unhide row.

    Anyone can help?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Show row base on Login

    Hi jp,

    Don't have time to write the whole thing, but a starting point would be this code.

    You'd want to create a userform with ID and Password, then use Select Case to decide which user has logged in. Once the relevant line are visible you need to set their protection properties to unlocked which having the remainder of the worksheet locked, then password protect the sheet so they cannot unhide but they can edit the visible rows.

    Please Login or Register  to view this content.
    Please do add reputation where you see fit, it's nice to be nice and we all enjoy a pat on the back

    Please also mark your thread as solved once it has been.

  3. #3
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Show row base on Login

    I am not that good at userform and vba. Would appreciate if someone can help with a sample excel...

+ 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. Show picture automatically base on value in cell
    By phan sang in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-25-2017, 02:49 AM
  2. Replies: 3
    Last Post: 06-02-2014, 08:04 AM
  3. Replies: 2
    Last Post: 03-31-2014, 01:32 AM
  4. How to show Fullname VS windows Login ID
    By ozgeek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2014, 12:23 AM
  5. [SOLVED] Search in my data base and show result in date categorize
    By pedjvak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2013, 05:04 AM
  6. show/hide rows base on value
    By arnab0711 in forum Excel General
    Replies: 3
    Last Post: 06-06-2010, 10:32 AM
  7. how to show different photos, base on different value of a cell?
    By Howard Hsu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2006, 03:00 PM

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