Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub BoldValue()
Dim s As String, p As Integer
s = "7200"
With Selection
.FormulaR1C1 = "160GB, 7200rpm/S-ATA/8MB, WD1600JD"
p = InStr(.Value, s)
If p > 0 Then
.Characters(Start:=p, Length:=Len(s)).Font.Bold = True
End If
End With
End Sub
Sub bolding()
Dim i As Long
Dim s As String, p As Integer
s = "7200"
For i = Selection.Row To Selection.Row + Selection.Rows.Count - 1
With ActiveSheet.Cells(i, Selection.Column) p = InStr(.Value, s)
If p > 0 Then
.Characters(Start:=p, Length:=Len(s)).Font.Bold = True
End If
End With
Next i
End Sub