I have a cell that has a pass or fail validation (BA). If the user selects Pass from the drop down list, unit passed all tests is displayed in another cell (N). The VBA I have used to make this happen works as expected:
On Worksheet_Change
If Range("BA17").Value = "Pass" Then Range("N44").Value = "Unit passed all tests."
If Range("BA18").Value = "Pass" Then Range("N45").Value = "Unit passed all tests."
If Range("BA19").Value = "Pass" Then Range("N46").Value = "Unit passed all tests."
Is it possible to condense this, as the final sheet will have up to 25-30 lines?
I tried adding a range, i.e. ("BA17:BA40") but then this updates all fields every time, which is not ideal.