+ Reply to Thread
Results 1 to 4 of 4

VBA Assistance with password access to sheets

  1. #1
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    VBA Assistance with password access to sheets

    Hi All

    I have attached a workbook which works as follows.
    When opened Userform2 opens and allows for login or set access.
    When entering 125 0r 150 as password Userform1 opens which allows a manager to set access to sheets,
    So that when any of the employees login, only those sheets that allow them access will be visible.

    1. I am stuck and not sure how to save the Userform1 options when selected.
    2. How to have these options chosen to take effect when the employees login.
    Can anyone please have a look and advise how to go about getting the result required.
    Attached Files Attached Files
    Last edited by sintek; 02-02-2017 at 10:10 AM.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: VBA Assistance with password access to sheets

    Hi All

    I saw on net that the info has to be saved to a hidden sheet so herewith code which stores selection.
    Must be a simpler way than this?
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: VBA Assistance with password access to sheets

    With the below code, a employee will log on: I need to enter code that checks the selection and makes visible only the sheets allowed.
    Please Login or Register  to view this content.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: VBA Assistance with password access to sheets

    Hi All

    I managed to accomplish what I needed, however, the code is extremely long. Can someone please assist to shorten.

    The below code needs to be shortened. Pretty please.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Replies: 2
    Last Post: 08-09-2014, 06:15 PM
  2. Replies: 8
    Last Post: 03-26-2013, 02:01 PM
  3. Replies: 0
    Last Post: 03-08-2012, 01:34 AM
  4. Assistance please. password on opening excel file
    By mangchik in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-06-2006, 09:50 AM
  5. [SOLVED] Add Password Using Access
    By Ross in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2005, 03:05 PM
  6. I Need VBA Assistance regarding passing a variable from Access
    By Brent E in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2005, 05:06 PM
  7. access password
    By Capt.Scott in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2005, 03:06 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