Hi, hopefully a quick one.
In VBA I want to check if a text value exists in a range, and if it does change the value of another cell to either Y or N
The code I have so far is
I want to check if the Value "ADF" exists in the cells in the range ive put in, and if it does then a different cell, lets say C1, becomes "N", if the value doesnt exist the value should be "Y"
Not sure where to go next. I'm very new to VBA and have inherited this spreadsheet i am working on from a developer that is no longer around.
In VBA I want to check if a text value exists in a range, and if it does change the value of another cell to either Y or N
The code I have so far is
VBA Code:
Private Sub check_nil_defects()
Dim rng As Range
Set rng = Worksheets("DPU Report Template").Range("D25:D39,I25:I38")
End Sub
I want to check if the Value "ADF" exists in the cells in the range ive put in, and if it does then a different cell, lets say C1, becomes "N", if the value doesnt exist the value should be "Y"
Not sure where to go next. I'm very new to VBA and have inherited this spreadsheet i am working on from a developer that is no longer around.