PDA

View Full Version : VBA Bold Text



agtjones
06-29-2021, 12:31 AM
Hi All,

Is there a way using VBA to make part of a text string within a cell go bold? i.e. I want to me this text bold only

Bob Phillips
06-29-2021, 04:21 AM
An example


testvalue = "text"
With ActiveCell

.Characters(InStr(.Value, testvalue), Len(testvalue)).Font.Bold = True
End With