I have this snippet of code I found and it works perfectly. It concatenates cells and applies a bold formatting to only one part of the concatenation.
Except it only works with the referenced cells (A1, B1). I am looking to have this work for each row automatically (A2, B2; A3, B3, etc).
Except it only works with the referenced cells (A1, B1). I am looking to have this work for each row automatically (A2, B2; A3, B3, etc).
Code:
Sub BoldPartText()
Dim Part1Len, Part2Len, DividerLen As Integer
Dim Divider As String
Part1Len = Len(Range("A1"))
Part2Len = Len(Range("b1"))
Divider = Chr$(10)
DividerLen = Len(Divider)
Range("e1").Clear
Range("e1") = Range("A1") & Divider & Range("b1")
With Range("e1").Characters(Start:=1, Length:=Part1Len).Font
.FontStyle = "Bold"
End With
End Sub