I have tried to write code to clear all bold items in col B on sheet "Data Import"
However when running my code no items are being cleared
It would be appreciated if someone could kindly amend my code.
However when running my code no items are being cleared
Code:
Sub Clear_BoldItems()
With Sheets("Data Import")
Dim LR As Long
LR = .Cells(.Rows.Count, "B").End(xlUp).Row
If .Range("B1:B" & LR).Font.Bold = True Then
.Range("B1:B" & LR).ClearContents
End If
End With
End Sub
It would be appreciated if someone could kindly amend my code.