Sub Barb_Mick()
With Range("D1", Range("D" & Rows.count).End(xlUp))
.Replace "Sample", "=xxxSample", xlWhole, , False, , False, False
.SpecialCells(xlFormulas, xlErrors).Offset(, -3).ClearContents
.Replace "=xxxSample", "Sample", xlWhole, , False, , False, False
End With
End Sub
Ohmigosh. That worked beautifully. Thanks so much!
Sub Barb_Mick()
With Range("D1", Range("D" & Rows.count).End(xlUp))
.Replace "Sample", "=xxxSample", xlWhole, , False, , False, False
.SpecialCells(xlFormulas, xlErrors).Offset(, -3).ClearContents
.Replace "=xxxSample", "Sample", xlWhole, , False, , False, False
.Offset(, -1).Value = Evaluate("if(" & .Address & "<>""TUBE"",""""," & .Offset(, -1).Address & ")")
End With
End Sub