"excel vba bold some text in cell" Code Answer's
You're definitely familiar with the best coding language VBA that developers use to develop their projects and they get all their queries like "excel vba bold some text in cell" answered properly. Developers are finding an appropriate answer about excel vba bold some text in cell related to the VBA coding language. By visiting this online portal developers get answers concerning VBA codes question like excel vba bold some text in cell. Enter your desired code related query in the search bar and get every piece of information about VBA code related question on excel vba bold some text in cell.
excel vba bold some text in cell

' Occurences of pWord inside pRange's text become bold and red. Case insentive.
Sub WordToBold(ByRef pRange As Range, ByVal pWord As String, _
ByRef pPos As Integer)
Dim pos As Integer
pos = InStr(pPos, pRange.Value, pWord, vbTextCompare)
If pos > 0 Then
With pRange.Characters(pos, Len(pWord))
.Font.Bold = True
.Font.Color = vbRed
End With
WordToBold pRange, pWord, pos + 1
End If
End Sub
'--------------------------------------------------------------------------------
Sub TestIt()
Range("A1") = "Run, Forrest run"
WordToBold Range("A1"), "run", 1
End Sub
All those coders who are working on the VBA based application and are stuck on excel vba bold some text in cell can get a collection of related answers to their query. Programmers need to enter their query on excel vba bold some text in cell related to VBA code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about excel vba bold some text in cell for the programmers working on VBA code while coding their module. Coders are also allowed to rectify already present answers of excel vba bold some text in cell while working on the VBA language code. Developers can add up suggestions if they deem fit any other answer relating to "excel vba bold some text in cell". Visit this developer's friendly online web community, CodeProZone, and get your queries like excel vba bold some text in cell resolved professionally and stay updated to the latest VBA updates.