TPortsmouth
New Member
- Joined
- Apr 6, 2017
- Messages
- 41
Hello,
I've an issue on how to change other cells into "Lock" based on a specific value.
By default, cells within columns B to F was locked, if relevant row's Control value = "Yes", the same row's Column C, D and E will be unlock.
For example, if Cell A2 = "Yes", then Cell C2:E2 will be unlock.
I've been thinking whether this can be done by a series of Macro below:
1. If the cell value of A2 change, then after update, if A2 is not equal to "Yes", nothing happen.
2. If A2 = "Yes", unlock worksheet with password.
3. Cell properties of C2:E2 change into "Unlock".
4. Lock worksheet with password.
One of the difficulties is: How do I define the range? As above range A2:F6 is just an example, the whole data set can be much larger.
Let's say, it can contain more than a 1000 records.
Any suggestion on this? Thanks.
I've an issue on how to change other cells into "Lock" based on a specific value.
By default, cells within columns B to F was locked, if relevant row's Control value = "Yes", the same row's Column C, D and E will be unlock.
For example, if Cell A2 = "Yes", then Cell C2:E2 will be unlock.
I've been thinking whether this can be done by a series of Macro below:
1. If the cell value of A2 change, then after update, if A2 is not equal to "Yes", nothing happen.
2. If A2 = "Yes", unlock worksheet with password.
3. Cell properties of C2:E2 change into "Unlock".
4. Lock worksheet with password.
One of the difficulties is: How do I define the range? As above range A2:F6 is just an example, the whole data set can be much larger.
Let's say, it can contain more than a 1000 records.
Any suggestion on this? Thanks.