Hi Akuiuni, how do i make the macro search for NO and TIP so if found it will reset to YES? Thank you for all your help.
VBA Code:
Function isValid(c As Range) As Boolean
Dim v
On Error Resume Next
v = c.Validation.Type
On Error GoTo 0
isValid = Not IsEmpty(v)
End Function
Sub JamRivera()
Dim c As Range
Dim sAddress As String
For Each x In Array("Sheet1", "Sheet2")
With Sheets(x).Range("A1:V45")
Set c = .Find(What:="No", LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
If Not c Is Nothing Then
sAddress = c.Address
Do
Set c = .FindNext(c)
If isValid(c) Then c = "Yes"
Loop While Not c Is Nothing And c.Address <> sAddress
End If
End With
Next
End Sub
VBA Code:
Function isValid(c As Range) As Boolean
Dim v
On Error Resume Next
v = c.Validation.Type
On Error GoTo 0
isValid = Not IsEmpty(v)
End Function
Sub JamRivera()
Dim c As Range
Dim sAddress As String
For Each x In Array("Sheet1", "Sheet2")
With Sheets(x).Range("A1:V45")
Set c = .Find(What:="No", LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
If Not c Is Nothing Then
sAddress = c.Address
Do
Set c = .FindNext(c)
If isValid(c) Then c = "Yes"
Loop While Not c Is Nothing And c.Address <> sAddress
End If
End With
Next
End Sub