+ Reply to Thread
Results 1 to 10 of 10

Logon Box - User / Pass - Unique actions per user.

  1. #1
    Registered User
    Join Date
    03-28-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    37

    Logon Box - User / Pass - Unique actions per user.

    I have a workbook that is used to track overtime hours worked through the year. I've received some help from users on this forum, and others, to create the necessary macros and formulas to allow a supervisor to make use of the form; however, the workbook is also used to track those that wish to volunteer to work overtime each weekend. The sheet has a list of names for the employees on each shift, then a column to allow a "Y" to be placed under the date - designating them as a volunteer for any overtime available. I've found this spreadsheet (attached - from this site) that will allow individual users to access the workbook and have unique passwords for each. I don't completely understand how it works, but I feel it may be a start to getting what I want.

    Essentially, once the user selects their name and inputs their password, I'd like the workbook to be opened and then allow them to only manipulate the row associated with their name. That row will change from week to week, so specific numbers will not be able to be used, but their name will be the same as the name used in the logon.

    I feel like I'm asking for a lot here, so just some initial guidance on whether this type of thing is possible would be an acceptable answer. Thanks for your time.

    ** Please note - there are 3 users in the attached sheet ("password.xls") and the password is the same for all three = password.

    CVinje
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Logon Box - User / Pass - Unique actions per user.

    First off, it really isn't worth opening the whole XL security debate here as it's been discussed a thousand times before but let's just start off by being clear that no security in XL is watertight... if you ever have serious confidentiality issues when distributing files to multiple users - STOP - re-think - adopt an alternate approach and/or even use a different client (ie the web).

    Next - I think you would need to provide some sample data so we can actually visualise how your data will be setup...

    Essentially, once the user selects their name and inputs their password, I'd like the workbook to be opened and then allow them to only manipulate the row associated with their name. That row will change from week to week, so specific numbers will not be able to be used, but their name will be the same as the name used in the logon.
    So for ex - does the user name appear in multiple rows or only ever one row ?
    If multiple - what will be the best way to identify the appropriate row - is it always the last row for that user or is there to be a date identifier etc... ?

    As a pointer, it sounds very much as though what you're looking for is a routine that will, in order, do the following:

    -- Lock ALL cells
    -- Find the appropriate row and unlock ONLY those cells
    -- Protect the sheet

    If you provide a sample I'm sure people will be able to give you what you need.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Logon Box - User / Pass - Unique actions per user.

    Have a look at this example
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    03-28-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Logon Box - User / Pass - Unique actions per user.

    DonkeyOte - I understand that Excel is not very secure, no matter what I do - and I appreciate you stating that just in case.

    Your assessment of what I'm trying to accomplish is correct:
    As a pointer, it sounds very much as though what you're looking for is a routine that will, in order, do the following:

    -- Lock ALL cells
    -- Find the appropriate row and unlock ONLY those cells
    -- Protect the sheet
    I have an example of the sheet I'm using attached - to be more specific of what I'm looking for - I'd want a login box similar to that of the previous file I attached, based off the names listed. I can always add another sheet and hide it if needed with the names & passwords. I'd like the passwords to be user changeable. Once the user logs-in properly the only cells that should be changeable would be the row associated with their name - and only the columns associated with the days of the week. On my example that would be columns L through R. This would allow employees to put a "Y" in the column for the days they want to volunteer for overtime. For supervisors, they would need to access the same areas, but be able to unprotect the sheet to modify any other columns as necessary.

    Thanks for the help!

    CVinje
    Attached Files Attached Files
    Last edited by CVinje; 04-03-2009 at 10:00 PM.

  5. #5
    Registered User
    Join Date
    03-28-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Logon Box - User / Pass - Unique actions per user.

    Quote Originally Posted by royUK View Post
    Have a look at this example
    Do you know the passwords? Once I get that, how do you view all of the hidden worksheets once logged in? Once I get that far, I may be able to adapat / incorporate the code into my workbook.

    Thanks again!!

    CVinje

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Logon Box - User / Pass - Unique actions per user.

    The example workbook is not protected. Disable your macros then open the workbook. The code is not protected either. From there you will see all the sheets and be able to unhide them.

  7. #7
    Registered User
    Join Date
    03-28-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Logon Box - User / Pass - Unique actions per user.

    Ah - thank you - didn't think of that....

    CVinje

  8. #8
    Registered User
    Join Date
    03-28-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Logon Box - User / Pass - Unique actions per user.

    I'm sorry - I must be missing something; I'm new to VBA. I open the file, click disable macros, and then I'm taken to the "Splash" sheet only. Looking to unhide the other sheets, the Format->Sheet->Unhide option is not available. How would I view the other sheets?

    CVinje

  9. #9
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Logon Box - User / Pass - Unique actions per user.

    Open the VB Editor (ALT+F11). You'll see all of the sheets listed in the left-hand column. Select a sheet, look down at the Properties section and change the 'Visible' property from '0 - xlSheetHidden' or '2 - xlSheetVeryHidden' to '-1 - xlSheetVisible'.

    You'll then see those tabs appear in the workbook.

  10. #10
    Registered User
    Join Date
    03-28-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Logon Box - User / Pass - Unique actions per user.

    OK, thanks for that easy to follow instruction, I've gotten that far - now I'll try playing around with the code and see where it gets me

    Thanks again!!

    CVinje

+ Reply to Thread

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