Gemma S
New Member
- Joined
- Sep 9, 2020
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hi
I used to be a regular user of this board around 1999/2000 but my career then took me away from VBA etc and now I have a piece of work I want to do and I am very rusty (understatement)
What I am trying to achieve is for a spreadsheet to include salary information that can only be seen by one user with a password, the rest of the workbook is available to others
I have a simple macro that locks those cells, does not allow them to be selected and turns the font while so it wont show. I then have a input box to enter a password to be able to run the macro.
My problem is that a savvy user could write a formula that will reveal the data (ie if A1 - A10 has salary info, you can type =A3 into the formula bar and see the data)
Is there a way of stopping a user being able to reference cells that are locked?
I am trying to avoid have the salary data in another file or hidden sheet for clarity. Is there a way?
Thanks
Gemma
I used to be a regular user of this board around 1999/2000 but my career then took me away from VBA etc and now I have a piece of work I want to do and I am very rusty (understatement)
What I am trying to achieve is for a spreadsheet to include salary information that can only be seen by one user with a password, the rest of the workbook is available to others
I have a simple macro that locks those cells, does not allow them to be selected and turns the font while so it wont show. I then have a input box to enter a password to be able to run the macro.
My problem is that a savvy user could write a formula that will reveal the data (ie if A1 - A10 has salary info, you can type =A3 into the formula bar and see the data)
Is there a way of stopping a user being able to reference cells that are locked?
I am trying to avoid have the salary data in another file or hidden sheet for clarity. Is there a way?
Thanks
Gemma