oh thanks very much, I just have one more query, How do I adjust this formula so that I can present in a case select or if else manner in one sub(). Where for instance have a first criteria in my previous formula below
Dim c_ell As Range, S_heet As Worksheet
For Each S_heet In ActiveWorkbook.Sheets
If S_heet.Visible = xlSheetVisible And S_heet.Name <> "Cash Summary" Then
S_heet.Select
For Each c_ell In Range("N23", Cells(Rows.Count, 23).End(xlUp))
If IsDate(c_ell) And (UCase(c_ell.Offset(0, 25)) Like "*CCY*") Then
If c_ell <= Date_Ref Then
c_ell.Offset(0, -12) = "ME RELATED"
c_ell.Offset(0, -12).Font.ColorIndex = 3
c_ell.Offset(0, -12).Font.Bold = True
End If
End If
Next c_ell
End If
Next S_heet
End Sub
and the second one is this
Dim ce_ll As Range, Sh_eet As Worksheet
For Each Sh_eet In ActiveWorkbook.Sheets
If Sh_eet.Visible = xlSheetVisible And S_heet.Name <> "Cash Summary" Then
Sh_eet.Select
For Each ce_ll In Range("M23", Cells(Rows.Count, 23).End(xlUp))
If IsDate(ce_ll) And (UCase(ce_ll.Offset(0, 25)) Like "*ABC*") Then
If c_ell <= Date_Ref Then
ce_ll.Offset(0, -11) = "NOT RELATED"
ce_ll.Offset(0, -11).Font.ColorIndex = 3
ce_ll.Offset(0, -11).Font.Bold = True
End If
End If
Next ce_ll
End If
Next Sh_eet
End Sub
Bookmarks