Does this code do what you want?interesting...
The result is that each of the "scr" cells are coloured red, with black ink, and with strikethrough.
But the remainder of the row is unchanged.
When i said highlight, I meant in the sense that the cells would then be able to be changed all at once, just like when you hold down 'CTRL' and choose multiple cells which are then ready to be changed.
My aim is to have the entire row (containing the "scr") with a strikethrough, but have no colour change.
Sub Find_scr_StrikethroughIt()
Dim SCR As Range
With Columns("I")
.Replace "scr", "=scr", xlWhole
Set SCR = .SpecialCells(xlCellTypeFormulas)
.Replace "=", "", xlPart
End With
SCR.Font.Strikethrough = True
SCR.EntireRow.Select
End Sub
thank you.
Strikethrough worked only on 'scr' (column I)
The entire rows with scr are selected.
Is there an extra command that would strikethrough all the selected rows?
Is it ..
SCR.EntireRow.Font.Strikethrough
?
Sub Find_scr_StrikethroughIt()
Dim SCR As Range
With Columns("I")
.Replace "scr", "=scr", xlWhole
Set SCR = .SpecialCells(xlCellTypeFormulas)
.Replace "=", "", xlPart
End With
SCR.EntireRow.Font.Strikethrough = True
End Sub
SCR.EntireRow.Select