Forum Discussion
depedro11
Jan 13, 2022Copper Contributor
Excel VBA: if a cell not empty, then freeze or lock (do not allow to change) another cell
Hi Everybody! I have az excel file with a macro. When I select a type in cell G8, then macro will run. Then other people have to fill the table.... But in case someone change the selection of type...
- Jan 13, 2022Just add that condition to the macro. First line of the macro would be something like
IF activesheet.range("A1")<>"" then exit sub