I am having some trouble changing the lookup range from the ActiveSheet to the ActiveWorkbook. So instead of the Sub process looking on the active sheet, I am trying to have it look at each different sheet in the workbook. The error I am getting is Rumtime error 1004, No Cells were Found
I am hoping it is just a syntax thing
Sub FormulaSource2()
Dim rng As Range
Dim Cell As Range
Dim ws As Worksheet
Dim wb As Workbook
For Each ws In ActiveWorkbook.Worksheets
Set rng = ws.Cells.SpecialCells(xlCellTypeFormulas)
On Error GoTo 0
For Each Cell In rng
If CBool(InStr(1, rng.Formula, "'\\File-na", vbTextCompare)) Then
rng.Font.Bold = True
Else
End If
Next Cell
Next ws
End Sub
I am hoping it is just a syntax thing
Sub FormulaSource2()
Dim rng As Range
Dim Cell As Range
Dim ws As Worksheet
Dim wb As Workbook
For Each ws In ActiveWorkbook.Worksheets
Set rng = ws.Cells.SpecialCells(xlCellTypeFormulas)
On Error GoTo 0
For Each Cell In rng
If CBool(InStr(1, rng.Formula, "'\\File-na", vbTextCompare)) Then
rng.Font.Bold = True
Else
End If
Next Cell
Next ws
End Sub