+ Reply to Thread
Results 1 to 15 of 15

Show data from two tables based on Password submitted

  1. #1
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    279

    Show data from two tables based on Password submitted

    Hello,

    I have the attached file with data from multiple employees. In tab LEAVE SOURCE I have a bottom that requests a password. Employees will have their own passwords.

    First of all tab LEAVE SOURCE should only show the headers of the two tables. I would like to show the information from the employee of both tables based on the password submitted. The tab LEAVE TARGET is what my result would look like. Is this possible?


    Thanks,
    FG
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Show data from two tables based on Password submitted

    Unfortunately, Excel does not allow you to filter each table separately. When you filter one table, the whole row is affected. If it would work for you to have the 2 tables on 2 separate sheets, I may have a solution for you. Please let me know.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    279

    Re: Show data from two tables based on Password submitted

    Thank you @Mumps1 for the explanation.

    I can work with two sheets, I look forward to hearing from you.

  4. #4
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    279

    Re: Show data from two tables based on Password submitted

    I was thinking in another option. Maybe put the table that is located at the right at the very top and then the other table beneath this. However having two sheets also work for me.

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Show data from two tables based on Password submitted

    Try the attached file. I have hidden the EMPLOYEES sheet because I added a column with a password for every employee (pw1, pw2, pw3, etc.). This way the passwords are not visible. You can make the sheet visible and change the passwords. I have also replaced the button with a drop down list where an employee can select his/her name. Upon selecting a name in cell F1, the tables in sheets LEAVE SOURCE and DAYS OFF will be sorted automatically. Also, when the file is opened, only the headers will be visible. To prevent any employee from manually removing the filters so they can see all the data, the sheets LEAVE SOURCE and DAYS OFF are protected with the password "myPassword". You can change the password in the macros to suit your needs. There are two macros. One is in the sheet code module for sheet LEAVE SOURCE and the other macro is in the code module for 'ThisWordbook'. Please let me know how it works out.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    279

    Re: Show data from two tables based on Password submitted

    Thank you Mumps1. It worked great!

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Show data from two tables based on Password submitted

    You are very welcome.

  8. #8
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    279

    Re: Show data from two tables based on Password submitted

    Hi Mumps1,

    After doing some test I realized that when another employee opens up the file, he shows for a couple of seconds what the last employee saved. Is there a way to avoid this?
    Also, when the employee is watching his records, he is not allowed to enter new data such a new leave.

  9. #9
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Show data from two tables based on Password submitted

    When I tried opening the file, there was no data visible even for a split second. Are you using the file that I attached? When you say
    he is not allowed to enter new data such a new leave
    on which sheet and in which column would the new data be entered?

  10. #10
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    279

    Re: Show data from two tables based on Password submitted

    Yes, I am using your file. Letīs suppose that employee1 used the file. When employee2 opens it up, he sees what employee1 was doing for a couple of seconds.
    on which sheet and in which column would the new data be entered?
    it would be from ColB through ColD. They need to select his name, start date and end date.

  11. #11
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Show data from two tables based on Password submitted

    Are you saying that the employee may want to add a new row with new data?

  12. #12
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    279

    Re: Show data from two tables based on Password submitted

    That is correct. That new row will go to last non empty row of the table. Is this possible?

  13. #13
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Show data from two tables based on Password submitted

    Try the attached file.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    279

    Re: Show data from two tables based on Password submitted

    Thank you again Mumps1, that worked great!!

  15. #15
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Show data from two tables based on Password submitted

    My pleasure.

+ 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. find the latest row based on ID and date submitted
    By yaksh420 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-20-2018, 10:47 AM
  2. [SOLVED] is this possible? - Create new sheets based on dates submitted in macro
    By vpan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2016, 11:54 PM
  3. [SOLVED] Need a way to refresh combobox values when new data is submitted.
    By egavasrg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-04-2012, 03:46 PM
  4. Replies: 1
    Last Post: 05-18-2012, 08:49 AM
  5. Show/hide sheets on file open based on user password
    By allar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-10-2011, 12:41 PM
  6. Cell validation before data is submitted
    By PRodgers4284 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-17-2009, 12:15 PM
  7. Userform: Dont want all data to be cleared when submitted
    By gelandl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2008, 06:52 AM

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