Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Sub BoldAllLastNames()
Dim rng As Range
Dim c As Range
Dim nLen As Integer
Set rng = Range("B2:B10")
'<---Set range here
Application.ScreenUpdating = False
For Each c In rng
nLen = InStr(c.Text, " : ")
'<---Set delimiter here
If nLen > 0 Then
c.Characters(1, nLen).Font.FontStyle = "Bold"
End If
Next c
Application.ScreenUpdating = True
Set rng = Nothing
End Sub
Dim c As Range
ActiveSheet.UsedRange
On Error Resume Next
For Each c In ActiveSheet.UsedRange.Columns(2).Cells
c.Characters(1, Len(Split(c.Value, ":")(0))).Font.FontStyle = "Bold"
Next