I've seen just about every form of this except the one I need for my sheet specifically.
In Row H starting at H5 I have a drop down menu with a Y/N option and it goes all the way down to around H950. I want to lock the remaining cells in each row seperately if N is selected. In my case if I selected N in H5 then it would lock I5 thru DJ5. If Y is selected then it keeps them unlocked or unlocks them just in case N is selected on accident. I want this type of macro of event to occur seperately for each row. For example:
H5=N then lock I5 thru DJ5
H6=N then lock I6 thru DJ6
H7=Y then keep I7 thru DJ7 unlock or unlock them if N was selected first on accident
H8=N then lock I8 thru DJ8
In addition I would like to color the cells in black which I could do later with conditional fomatting I guess. Someone please help.
I would hate to have to write this macro of line manually 950 times.
Thanks for any help on this!!!
In Row H starting at H5 I have a drop down menu with a Y/N option and it goes all the way down to around H950. I want to lock the remaining cells in each row seperately if N is selected. In my case if I selected N in H5 then it would lock I5 thru DJ5. If Y is selected then it keeps them unlocked or unlocks them just in case N is selected on accident. I want this type of macro of event to occur seperately for each row. For example:
H5=N then lock I5 thru DJ5
H6=N then lock I6 thru DJ6
H7=Y then keep I7 thru DJ7 unlock or unlock them if N was selected first on accident
H8=N then lock I8 thru DJ8
In addition I would like to color the cells in black which I could do later with conditional fomatting I guess. Someone please help.
I would hate to have to write this macro of line manually 950 times.
Thanks for any help on this!!!