![]() |
#9
|
|||
|
|||
![]()
Hi Pierre,
Maybe Code:
Sub AtTheDateOf() Dim oRng As Range Dim arrParts() As String With Selection .HomeKey Unit:=wdStory .Find.Execute FindText:="at the date of [0-9]{2,}.[0-9]{2,}.[0-9]{4,}" .Expand wdParagraph Set oRng = .Range End With With oRng arrParts() = Split(.Text, " at the date") .Text = arrParts(0) .Font.Bold = True .Font.Italic = True .Collapse wdCollapseEnd .Text = arrParts(1) .Font.Bold = False .Font.Italic = False End With lbl_Exit: Exit Sub End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PowerPoint macro to change words between quotes to italic needed | KarenK13 | PowerPoint | 9 | 01-12-2020 12:59 PM |
![]() |
Ulodesk | Word | 2 | 07-25-2016 06:01 AM |
Opening doc in Word 2010 causes normal template to change - font size incorrect | Simonb | Word | 4 | 01-26-2016 03:52 PM |
![]() |
brent chadwick | Word VBA | 3 | 11-24-2015 12:48 PM |
![]() |
markg2 | Outlook | 2 | 06-09-2010 03:23 PM |