+ Reply to Thread
Results 1 to 30 of 30

Multi User accessible security login an shared Excel Sheet

  1. #1
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Multi User accessible security login an shared Excel Sheet

    Hi,

    I need to maintain an assumption log where multiple users will add their inputs to it regularly. If there is a possibility to provide username/password for each user (refer attached excel) and cells are locked once any data entered in it, it would be easy to avoid any blamings later. i have attached excel sheet with requirements. If anyone can help me on this will be great.
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Multi User accessible security login an shared Excel Sheet

    Hi, first of all the file shall have to be macro embedded and not an xlsx file as you have uploaded.
    Let me see if I understand you correctly:
    It refers to the worksheet Assumption log
    A user that has access to this file may write something in column C only if column C is empty and therefore unlocked
    when a user completes the entry the cell in column D of that row is completed with the logged in user name, column E the time stamp (date and time) and F will be locked too but only a user with Admin rights may edit something there.
    Concluding: the ONLY CELL A USER HAS ACCESS TO IS A CELL IN COLUMN C, correct?

    Does this mean that the remaining data that is present is already pre-filled?

    At what moment does the user have to enter his/her password?
    If the user notices he/she has made a mistake that he/she wishes to correct but the cell is already locked, what steps is he/she allowed? May the correction be made?
    I understand the Dash Board sheet is hidden and not accessible to users so that they cannot read each other's passwords. Do you, the Admin, create these passwords or does the user do this the first time?
    You could even think of a password encryption key so it's unreadable , but that is another story )
    Well, do you yourself already think of a way you would approach this?
    I do have some ideas but need to know the things I asked before I start.
    More important, do you have enough VBA knowledge to maintain this?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    @keebella,

    You have correctly understood my points. Please refer below to clarify your concerns

    Column A, B, G & H shall be always accessible/editable to all users.

    Column C & F shall be locked once the data entered.

    Does this mean that the remaining data that is present is already pre-filled? -- > Data shown in the excel sheet is a sample. Users will start entering the data continuously whenever required.

    At what moment does the user have to enter his/her password? -when a user need to enter any assumptions or constraints on a job, he need to log into the sheet and to type the data & save it. may be once he closed the sheet the next user will open and enter the data.

    If the user notices he/she has made a mistake that he/she wishes to correct but the cell is already locked, what steps is he/she allowed? May the correction be made? - If a user feels he need to modify the data. he need to approach admin. so that admin can open and edit the data. The main concern behind this is for ex:- during the initiation of a project/job, design team may be discuss something with production team verbally and they will find some solution. later on if the discussed things became an issue, they will start blaming " I had told you the things earlier and you only agreed to proceed this way. now see the thing is happened as i guessed at that time". it may be right/wrong who knows. If any such concern they entered in this excel sheet we will come to know if it is true or false no one will escape

    I understand the Dash Board sheet is hidden and not accessible to users so that they cannot read each other's passwords. Do you, the Admin, create these passwords or does the user do this the first time? - Exactly. admin (so far me) will create the username and password and will passed to users and if required the password can be modified.

    You could even think of a password encryption key so it's unreadable , but that is another story ) - I don't have no idea/knowledge about what you are pointing to. The main reason i introduced username & password is for the auto update the column D with the user name who is entering the data. if you feel for my requirement such username and password is not required and there is another way that also fine for me.

    Well, do you yourself already think of a way you would approach this? - I hope you got the answer for this from above sentences.

    I do have some ideas but need to know the things I asked before I start. - Based on my requirement, if there is any feasible way please suggest.

    More important, do you have enough VBA knowledge to maintain this? - Absolutely not. But if you provide me the excel with above requirement, I don't think i may need to change something in macro.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Multi User accessible security login an shared Excel Sheet

    Does this mean that the remaining data that is present is already pre-filled? -- > Data shown in the excel sheet is a sample. Users will start entering the data continuously whenever required.
    Does this mean that new rows can be added by the same users on-the-fly?

    I will see what I can do for you, it's not simple, if you don't have VBA knowledge it has no sense that I explain to you how to do it but would have to write something.

  5. #5
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    New rows can be added to all users for entering further data while required columns shall be in locked condition.

    If you are telling to do something in VBA code, i can do a little bit.

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Multi User accessible security login an shared Excel Sheet

    Let me put something together first; I'll try it during the day and let you know as soon as I have made something

  7. #7
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    can anybody help on this

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Multi User accessible security login an shared Excel Sheet

    Sorry for not getting back to you yet.
    I've been quite busy and couldn't really find the time to 'attack' this, and, it's not that simple.
    Hope to make some time free for it asap

  9. #9
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    @keebellah or any body - can you please help on this

  10. #10
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Multi User accessible security login an shared Excel Sheet

    No promises, but I'll see if I can do something for you.

  11. #11
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    Hi,

    can anybody help with this, please?

  12. #12
    Registered User
    Join Date
    02-20-2019
    Location
    Nederlands
    MS-Off Ver
    2016
    Posts
    6

    Re: Multi User accessible security login an shared Excel Sheet

    Quote Originally Posted by vkmummer View Post
    Hi,

    can anybody help with this, please?
    Hi vkmummer

    I hope this can help you so far.

    Best regards
    Scenic3
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    Hi,

    it shows error while clicking any cell/login
    Attached Images Attached Images

  14. #14
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Multi User accessible security login an shared Excel Sheet

    Yeah, typical error if not taking into account 64 32 bit

    Replace the top section of the PasswordMasked vba with the code below

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

  15. #15
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    Dear,

    Still it shows error while i click login. Should i do anything before click in login.

    Anyway many thanks for taking such efforts for helping me.
    Attached Images Attached Images

  16. #16
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,922

    Re: Multi User accessible security login an shared Excel Sheet

    The 64bit declarations should be:

    Please Login or Register  to view this content.
    and the relevant variables will need to be adjusted to be conditionally declared LongPtr rather than Long.
    Rory

  17. #17
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    Hi,

    can you please update the code in excel sheet itself.

  18. #18
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Multi User accessible security login an shared Excel Sheet

    Is it the same error?
    Did you paste the code correctly (our use the file I attached (which has the corrected code)

  19. #19
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Multi User accessible security login an shared Excel Sheet

    I noticed the the LongPtr or not did not make the difference with other files I wrote for others; but ... it doesn't hurt

  20. #20
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    Hi,

    I used the same updated file provided by you. but shows the same error.

  21. #21
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Multi User accessible security login an shared Excel Sheet

    Compile Errro type mismatch is something entirely different that the first error
    You'll have to take a look at the code and the PrtLong Rory suggested.
    Is your Office version 64-bit?

  22. #22
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Multi User accessible security login an shared Excel Sheet

    Well, changed it as Rory suggested.
    Give it a try and report EXACTLY where and which error.
    Type Mismatch is something else
    Attached Files Attached Files

  23. #23
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    Hi,

    Am using 64 bit version. but still the same issue.

    I opened and clicked the login button then 1 window poped up as shown below. when i clicked Ok it shows a yellow highlighted macro texts.

    How i can use admin rights (all cells editable) also. the black vertical texts need to be removed. this was shown to make you understand my requirements. Alos date format need to be dd-mmm-yy (01-Jun-20).
    Attached Images Attached Images

  24. #24
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,922

    Re: Multi User accessible security login an shared Excel Sheet

    That was not the code I suggested. The amended workbook is attached. You could still get a Type Mismatch error if the username entered does not exist, which was a problem in your original code too.
    Attached Files Attached Files

  25. #25
    Registered User
    Join Date
    02-20-2019
    Location
    Nederlands
    MS-Off Ver
    2016
    Posts
    6

    Re: Multi User accessible security login an shared Excel Sheet

    your login code should be "admin" and your password "Password"

    I'm sorry bud I did make this on the 32-bit version.

    Besr regards,
    Scenic3

  26. #26
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    Hi Rorya & Scenic3,

    it is working fine. but even in the admin i am not unable to remove the vertical indication texts with "-->" which was provided in the initial excel sheet for understanding my requirement. can you please delete that and revert back.

    Also i need below

    - Assumption made by columns shall be updated based on the user enetered
    -Date format need to be dd-mmm-yy (01-Jun-20)
    -status & action columns shall be accessible for "restricted users as well"
    Last edited by vkmummer; 06-01-2020 at 07:03 AM.

  27. #27
    Registered User
    Join Date
    02-20-2019
    Location
    Nederlands
    MS-Off Ver
    2016
    Posts
    6

    Re: Multi User accessible security login an shared Excel Sheet

    Quote Originally Posted by vkmummer View Post
    Hi Rorya & Scenic3,

    it is working fine. but even in the admin i am not unable to remove the vertical indication texts with "-->" which was provided in the initial excel sheet for understanding my requirement. can you please delete that and revert back.

    Also i need below

    - Assumption made by columns shall be updated based on the user enetered
    -Date format need to be dd-mmm-yy (01-Jun-20)
    -status & action columns shall be accessible for "restricted users as well"
    Maybe this is better.
    Attached Files Attached Files

  28. #28
    Registered User
    Join Date
    03-23-2020
    Location
    india
    MS-Off Ver
    365
    Posts
    59

    Re: Multi User accessible security login an shared Excel Sheet

    Dear scenic,

    Thank you very much. still there is below issue.

    - even if i logged with other users credential, "assumption made by" coulmn is updating with my excel name (name registered in my PC for office 365). I need to change this into the user name who logged in
    - also the date format if possible -dd-mmm-yy

  29. #29
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Multi User accessible security login an shared Excel Sheet

    One thnig is the logged on user, not the one using the file.
    So if you are working on your own system and looged in there THAT's the username, not another one!!!

  30. #30
    Registered User
    Join Date
    02-20-2019
    Location
    Nederlands
    MS-Off Ver
    2016
    Posts
    6

    Re: Multi User accessible security login an shared Excel Sheet

    I suppose the user is logged in on his own system, so his own username.

    I have changed the format of the date to 01-June-2020

    Best regards
    Scenic3
    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. Multi User Login Form - Help
    By tfilipe in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-22-2018, 07:26 PM
  2. Replies: 2
    Last Post: 02-07-2018, 01:29 PM
  3. Excel user login direct sheet
    By pappu.singh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2013, 03:46 AM
  4. Multi User shared workbook password protection?
    By dougt69 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2013, 10:26 PM
  5. Replies: 0
    Last Post: 10-21-2012, 05:43 PM
  6. HELP!!! suggestions on how to create a user-login / security level
    By playdoh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2007, 09:56 AM
  7. Shared Worbook Accessible on an Intranet
    By Paul. in forum Excel General
    Replies: 2
    Last Post: 04-14-2005, 07:06 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