excel vba: make part of string bold

后端 未结 2 719
清歌不尽
清歌不尽 2020-12-06 18:17

I have excel cells which contain entries like this:

name/A/date
name/B/date
name/C/date

Cell content is displayed on multiple lines in the

2条回答
  •  时光取名叫无心
    2020-12-06 18:44

    Have it now:

    lngPos = InStr(ActiveCell.Value, "/")
    With ActiveCell.Characters(Start:=1, Length:=lngPos - 1).Font
        .FontStyle = "Bold"
    End With
    

提交回复
热议问题