This will do it - you need to make sure the line that 'writes' the name and address ends with a line feed - vbcrlf - because the pattern looks for that. The pattern will match any thing after the second colon so it will work with any phone number format.
This replaces the code below the itmAppt.Display line to the end sub.
Dim Reg1 As RegExp
Dim M1 As MatchCollection
Dim M As Match
Dim olInspector As Outlook.Inspector
Dim olDocument As Word.Document
Dim olSelection As Word.Selection
Dim strText As String
Dim strNumber As String
Set olInspector = Application.ActiveInspector()
Set olDocument = olInspector.WordEditor
Set olSelection = olDocument.Application.Selection
Set Reg1 = New RegExp
' \s* = invisible spaces
' \d* = match digits
' \w* = match alphanumeric
With Reg1
.Pattern = "(Mobile Number\s*[:]\s*([\w-\s]*)[:]\s*(.*)\n)"
.Global = True
End With
If Reg1.test(itmAppt.Body) Then
Set M1 = Reg1.Execute(itmAppt.Body)
For Each M In M1
' M.SubMatches(1) is the (\w*) in the pattern
' use M.SubMatches(2) for the second one if you have two (\w*)
Debug.Print M.SubMatches(1)
Debug.Print M.SubMatches(2)
strText = M.SubMatches(1)
strNumber = M.SubMatches(2)
olSelection.Find.ClearFormatting
olSelection.Find.Replacement.ClearFormatting
With olSelection.Find.Replacement.Font
.Size = 14
.Bold = True
.Underline = wdUnderlineSingle
.Color = wdColorRed
End With
With olSelection.Find
.Text = strText
.Replacement.Text = strText
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
olSelection.Find.Execute Replace:=wdReplaceAll
With olSelection.Find.Replacement.Font
.Size = 14
.Bold = True
.Underline = wdUnderlineSingle
.Color = wdColorBlue
End With
With olSelection.Find
.Text = strNumber
.Replacement.Text = strNumber
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
olSelection.Find.Execute Replace:=wdReplaceAll
Next
End If
Set olInspector = Nothing
Set olDocument = Nothing
Set olSelection = Nothing
Set objMsg = Nothing
Set ObjItem = Nothing
Set objFolder = Nothing
Set objNS = Nothing
Set objApp = Nothing