January 11, 2019
Hello house, so i have this excel workbook. in it, I have three different sheets. Sheet1, Sheet2 and Sheet3. This workbook is going to be accessed or used by four different people. Sheet1 is the master sheet (To be operated or viewed by person A & B. it is getting data from Sheet2 (Operated by person C), Sheet3 (Operated by person D).
So, these are my requirements:
1. Sheet1, Sheet2 & Sheet3 should be visible to Person A & B since they are the Admin.
2. Only Sheet2 should be visible to person C.
3. Only Sheet3 should be visible to person D.
Please, how can i achieve this?
VIP
Trusted Members
December 7, 2016
VIP
Trusted Members
June 25, 2016
Hi Vic
You can refer to an example here:
https://www.myonlinetraininghu.....heet#p6366
Like what Anders mentioned above, it is not fool-proof.
Good luck.
Sunny
Answers Post
January 11, 2019
Hello Sunny,
Thanks man for this. it is very helpful. Meanwhile, how do i give a user the right to be able to work on the sheet that is visible to him? it is only the admin who can edit or add content to any sheet. If user1 is given the access to be able to see sheet1, then he should be able to work on that sheet. this is the only thing remaining now for me. Thanks so much
VIP
Trusted Members
June 25, 2016
January 11, 2019
Hello Sunny,
I understand you. kindly go through the sheet and you would see that a user apart from the admin, cannot work on the sheet assigned to him. check and you would see. There are times that what a user enters disappears
I have attached the file for your refference. you can use user name: Admin1 & password as 123 to access the setup page. Now, user1 and user2 who have access to SRRV and SIV sheets respectively cannot work on the sheet assigned to them. Kindly help with this.
Try logging in with user1 for instance who have the right to SRRV sheet alone. then, try entering any date in A14, you would see that it doesnt even take up the table format (Try this with an Admin log in and see the difference). Also, in the same SRRV sheet for user1, enter any item code in column cell C14. You would see that it disappears immediately. the user also cannot refresh pivot table or add a column or delete a column. user1 and user2 can practically not do anything in the sheet assigned to them. This is the only problem. The login behavior and security is superb. I like this. you did a fantastic job. pls just help me correct this problem.
Thanks for your kind assistance.
VIP
Trusted Members
June 25, 2016
Hi Vic
I don't have the problem described by you.
I only noticed that the Use PivotTable Report is unchecked and this will prevent usage of the PT if the sheet is protected.
If you right-click on the tab of sheet SRRV and select Protect Sheet, you will notice that the Use PivotTable Report option is unchecked.
The Insert Rows too is unchecked. Try checking them and see if it helps.
Can you also post your query into only one of the post and not both?
Thanks
Sunny
January 11, 2019
Hello Sunny,
The problem is still the same. Try to log in with user1 and password as 1010 (Access to SRRV sheet). Then, try to insert a column or try to enter any text in any of the empty cell. This is not happening at all. I can do these as an admin but as user1 or user2, i cannot work or do anything with the sheet. Please help. Even in the original xlsm file you posted in the forumn, the problem is there also. If you could please work on the attachment i sent so that for user1 and user2 password 1010 and 2020 respectively can insert column, delete column, type without text disappearing . I have attached the sheet again.
Admin1 password again is 123
Thanks.
VIP
Trusted Members
June 25, 2016
Hi Vic
I am still unable to replicate the problem using all the passwords.
Which column are you trying to add? Which cell is giving you a problem when you enter data? What error message is being displayed?
Cell C14 that you quoted already have data. Can you give the file to someone else to test if they are also encountering the same problem?
Are you protecting the worksheets? What version of Excel are you using?
Can you try closing Excel and then opening only this particular file?
Sunny
January 11, 2019
Hello Sunny,
the sheet is not protected as you can see in the attached file i sent to you. when I log in with either user1(SRRV sheet) or user2(SIV sheet), i can't enter any any thing in any cell, i cant edit anything in any cell. I cannot add column or delete column. I cannot do anything at all. I thought it was my version of excel (2013). I uninstalled and installed again. Same thing. I uninstalled and installed 2016, same thing. I tried opening the file in another system of two different excel versions, same thing. It is not working. when I log in with the admin, it is working fine. but with either of the users (user1 and user2), It is not working. The sheet is not protected (Kindly check the sheet again). Now, If I am on SRRV sheet or SIV sheet, and I go to the developer tab and I click on properties, If I make either of enableAutofilter = true, or enableOutling = true, or EnablePivotTable = true, then everything starts working. But when i close the file and reopen, it is back to the problem. Please look into the file very well. user1 or user2 cannot do anything please.
If possible, kindly work on the sheet for me and see that user1 and user2 can delete or inster column,row and can enter data at will.
Thanks
VIP
Trusted Members
June 25, 2016
VIP
Trusted Members
December 7, 2016
Hello,
I downloaded the Protected.xlsm that you have provided Vic. I logged on as User1 and worked fine in sheet SRRV, but there are issues which I mention below.
I was only able to insert columns if inserting new column from the sheet, that is for example right clicking on column D and choose Insert. I am not able to insert new table column by right clicking any table cell and choose Insert --> Table Columns to the left, due to the Pivot Table. If you put the Pivot Table further aside or below the table then that problem is solved, until the table borders with the Pivot Table yet again.
I have no problems adding data to any cell, both in the table and outside the table. I can add new rows with current structure, as the Pivot Table only interferes to the right, not down.
I don't know the reason why you have the Pivot Table in SRRV sheet, it picks data from Table3 and the table in SRRV sheet is Table2. I assume that Pivot Table is to serve as a lookup table, so that the users can choose correct item code. A better option is to have a drop down list for the users to choose correct item (Item description), then you don't need this Pivot Table.
Anyway, as already mentioned by Sunny (and I did not download his latest version) it all works fine. I can't replicate the issues mentioned by you.
The attached file will show that I have added one row in each sheet, SRRV and SIV with start date June 1 2019. You will also see that I have added one column in SRRV sheet.
VIP
Trusted Members
June 25, 2016
Hi Anders
The strange thing is that Vic mentioned if logging in as admin there are no issues.
There is nothing special about the VBA code other than hiding/unhiding sheets. So logging in as admin or otherwise should not be any different.
When he mentioned inserting a column, I assume he right click a column header to insert.
I guess you are right about him trying to insert a table column via Insert - Table Columns To The Left which will fail due to the PT on the right.
The next question is why the PT cannot be refreshed.
I am more interested about the "disappearing text" thing and how it occurred. Setting problem? Bug? Some other program running in the background?
The only logical explanation I can think of is custom formatting eg. ;;;
Unless we know the exact step that he is doing it is going to be very difficult to make a guess.
January 11, 2019
Hello Everyone,
I really appreciate your responses and contribution. However, i do not know whether or not this is a bug or something. I have tried it on multiple devices with different version of excel and the problem is still there.
The moment I log in with either user1 or user2, the first thing i do is go straight to any column (Not necessarily the table column), then I right click and click insert. It doesnt insert. If i try delete, it doesnt delete. Meanwhile these actions are happening in background to the Main sheet. The disappearing word i told you about is appearing on the main sheet. I see these when i go back to the Main sheet to log in. All the text i entered, all the column I insert and delete on the SRRV or SIV sheet which are not happening there are coming on the Main sheet. There are times that the blue login button gets expanded/stretched because of the insert i was perfoming on the SRRV or SIV sheet which is not showing there. But when I run any macro (Any macro at all - defined or not defined), it starts working well.
Sunny, please could you provide me the code that controls the login button and also the one that controls the display sheet. Maybe I should develop with another sheet. I am not too familiar with VBA so, you could teach me how to go about developing another or you could develop another with another sheet entirely for me (Not editing the sheet you gave use in the forum). Funny thing is, when i run any macro whatsoever, even macros which are not associated with unprotecting a sheet or even a macro without any code in it, the problem gets resolved. but when i close the file again, the problem starts. I even had to create a button to assign macro to it instructing the user to click the button first before they could work. unfortunately, it doesnt work even though there is not compile error. I am forced every time to go to the developer tab and run the macro from there before it works and not from the button. This also stops working when i reopen the file. I am really stuck.
Kindly help.
VIP
Trusted Members
June 25, 2016
Hi Vic
The codes to the file is not protected so you can see them if you press ALT-F11.
I will recreate the file once more just in case your's is corrupted.
Since you mentioned that what you do in the sub sheet is happening to the Main sheet, I am just wondering if you grouped the sheets?
Sunny
VIP
Trusted Members
June 25, 2016
January 11, 2019
Hello Sunny,
Thanks for the prompt request. I am grateful. I have been trying to attach a video of the problem i am having but i cannot attach the file. That would have helped. If it is not against the policy of this forum, I can send you the video if you provide an e-mail address to send it to. The video would help you understand the problem I am facing. The video is just 4mb and it is not getting attached.
I look forward to hearing from you soonest as always.
Thanks for your usual assistance.
Vic
VIP
Trusted Members
June 25, 2016
1 Guest(s)