Results 1 to 4 of 4

VBA help password check then open form or sheet depending on option button selection

Threaded View

pjbassdc VBA help password check then... 07-03-2013, 09:56 AM
codeslizer Re: VBA help password check... 07-04-2013, 12:49 AM
pjbassdc Re: VBA help password check... 07-08-2013, 11:33 AM
codeslizer Re: VBA help password check... 07-11-2013, 06:35 AM
  1. #1
    Forum Contributor
    Join Date
    05-12-2009
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    113

    VBA help password check then open form or sheet depending on option button selection

    I could really use some help with a project that seems to be growing rapidly beyond my abilities. I have a userform that is serving as a portal to other items in the workbook. First problem is getting user passwords working. I will have 1 master password and 3 user passwords. Of course the master will be allowed into everything. The users need to be able to access only their unit's specific forms. I would like the macro to take the selections of the two option boxes on the userform and do the following:

    Lets say I have a logsheet named Unit A, when the logsheet option is selected in one option group and Unit A in the other, if the password validates for that unit, it will open the unit specific logsheet. If the password is incorrect or not matching with the unit designation, it will not open the logsheet.

    I have been looking around for the answer, but I haven't found a cookie cutter type solution I can get to work with my limited skill and ability in VBA programming. The latest thing I came across that seemed promising was the use of case statements. However, I am not sure how this would work with multiple selections and a password.

    Attached is a sample form I have been working on.

    Thank you for any help or direction you may provide.

    Patrick
    Attached Files Attached Files

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