Hi Ciao,
The following code you wrote is working, but I just have following two questions
1- Can the code run automatically i.e. as the value of cell A1 is changed, the range D1:H1 should automatically get locked. Now I need to run the macro. So can this code be executed itself as soon as the value of cell A1 changes.
2- Also can I just request for a slightly change in code. Instead on just one cell, can I have range i.e. A1 : A10 and this range can have any one of the four value (i.e. 1, 4, 7 & 8). So if the range A1:A10 has either 1 or 4 or 7 or 8, then the corresponding range from D : H should get locked.
For your convenience, I have put the code in the file and attached it whit this post. As I was not able to attach the file in previous post, I have started new post.Please Login or Register to view this content.
Thanks a lot for your support.
Nisha
Bookmarks