Hello.
I have the following VBA code within my worksheet:
I wish to add to this so that in the cells in column D, if there is a formula, it cannot be changed, but if one overwrites or deletes the formula it's ok. For example...
The formula is below.
This formula relies with what is in column E. However, I have someone who likes to mess around and changes all the "u" into "?". I'd like that to be prevented so to avoid future issues with the spreadsheet when it's using the formula.
However.
It doesn't matter if this is overwritten with data manually typed. So a big no to editing the formula, but an ok to overwriting and deleting it. Can you help me please?
I have the following VBA code within my worksheet:
Code:
If Target.Count > 1 Then Exit Sub 'this means only reacts to single cell changes
If Target.Column <> 5 Then Exit Sub 'Target column 5 (E) no more no less
{IF statement}
I wish to add to this so that in the cells in column D, if there is a formula, it cannot be changed, but if one overwrites or deletes the formula it's ok. For example...
The formula is below.
Code:
=IF(E215="u","u",IF(F215="","",IF(ISERROR(VLOOKUP(F215,Check!$A:$B,2,0)),"u",VLOOKUP(F215,Check!$A:$B,2,0))))
This formula relies with what is in column E. However, I have someone who likes to mess around and changes all the "u" into "?". I'd like that to be prevented so to avoid future issues with the spreadsheet when it's using the formula.
However.
It doesn't matter if this is overwritten with data manually typed. So a big no to editing the formula, but an ok to overwriting and deleting it. Can you help me please?