HELP
'Need to EXCLUDE Workbook "Project.xlsm" when searching
'For some reason it is still displaying YES when nothing is found
Sub FindName()
Dim i As Long
Dim Fnd As String
Dim fCell As Range
Dim ws As Worksheet
Fnd = "#NAME"
For Each ws In Worksheets
With ws
Set fCell = .Range("A1")
For i = 1 To WorksheetFunction.CountIf(.Cells, Fnd)
Set fCell = .Cells.Find(What:=Fnd, After:=fCell, LookIn:=xlValues, _
LookAt:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False)
If fCell Is Nothing Then
Range("=Coded!$C$13").Value = "None"
Range("=Coded!$C$13").Interior.Color = RGB(0, 192, 0)
Exit For
Else
With fCell
Range("=Coded!$C$13").Value = "Yes"
Range("=Coded!$C$13").Interior.Color = RGB(255, 0, 0)
End With
End If
Next i
End With
Next ws
End Sub