If you want to perform this on several cells then you can use below code as a starting point. I have provided comments in the code which should assist you to understand.
Public Sub HUBSpecificStyle()
Dim rng As Range
Dim varContent, varFirstRow
'\Loop through all cells in selection
For Each rng In Range("A2:B2") '\ Set your range reference here
varContent = Split(rng.Value, Chr(10)) '\ Split cell contents by newline character
With rng
'\ First two lines of row bold
.Characters(1, Len(varContent(0) & Chr(10) & varContent(1))).Font.Bold = True
'\Third line underline
.Characters(Len(varContent(0) & Chr(10) & varContent(1) & Chr(10)) + 1, Len(varContent(2))).Font.Underline = True
'\ Split first line with hyphens
varFirstRow = Split(varContent(0), "-")
'\Third part italic
.Characters(Len(varFirstRow(0) & "-" & varFirstRow(1) & "-") + 1, Len(varFirstRow(2))).Font.Italic = True
End With
Next rng
End Sub
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…