I am new to Excel VBA can someone please help.I am trying to write a VBA Excel function that will cause Excel tosay "Fail" if the value entered in a cell is out of the required range.If as a result of a calculation a cell's value changes. How can I getExcel to act on that change.Example:Enter a value in Cell say B35 that is too high or too lowIf B35 < 2.5 or > 3.5 Then say "Fail".
if(or(b35<2.5,b35>3.5), b35, "Fail")air code... but i think it'll work
This can be easily accomplished using Excel's built in Data Validation feature.You don't need VBA at all