Format specific text within a cell with VBA?

后端 未结 1 1425
迷失自我
迷失自我 2021-01-28 03:59

When I use Excel it allows me to set specific words within a cell to bold or italic or even change the text size.

Is there a way of doing this

相关标签:
1条回答
  • 2021-01-28 04:13

    I believe the answer could be found here: excel vba: make part of string bold

    Specifically,

    ActiveCell.FormulaR1C1 = "name/A/date" & Chr(10) & "name/B/date" & Chr(10) & "name/C/date"
    With ActiveCell.Characters(Start:=25, Length:=4).Font
        .FontStyle = "Bold"
    End With
    
    0 讨论(0)
提交回复
热议问题