Hide rows or access only specific rows based on userform login


New Member
Feb 15, 2019
I have a tricky question. I have a workbook I am using for a game about 1000 people will be playing. The workbook consists of several sheets but the only sheets users will have access to is a sheet called "Picks". Admin users will have access to all sheets so I already have a system in place for sheet access
I have created a userform where users will register their info and create a username and password. Once they register they will login and gain access to only "Picks" sheet. What I cant seem to accomplish is when a normal user logins into the Picks sheet I only want them to view and access the row their username or regular name (either way) is on.

I was thinking of 2 ways to accomplish this:

1. Using another userform that pops up when they login to access their row with drop down menus but I don't know the code to accomplish this. 2. The other way would be to hide all other rows except the one that their username or regular name exists on.

*****NOTE**** There are 17 weeks on the Picks sheet and each week users will pick a team to win. They can only pick that team once so the drop down menus are dynamic and once a team is picked it drops off the drop down menu.

I cant add an attachment but I hope this is alright. Here is a link to the workbook.


You can close the userform and access the VBA since I haven't added any security yet. Its just for fun and there isn't any personal data on this thing so I'm not worried about anyone doing anything with it. Thanks for any help. I hope I've made myself clear.

Some videos you may like

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Latest member

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...