I have a VBA Word wildcard search macro that requires the following line
QUOTE
.Text = "^t^t* - "
be changed to...
QUOTE
.Text = "^p^t^t* - "
The problem is that the ^p (paragraph mark) cannot be used with a wildcard search. I tried using ^13 but that did not work either.
Here is the full macro
QUOTE
Selection.Find.ClearFormatting
With Selection.Find
.Text = "^t^t* - "
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.Find.Execute
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.MoveLeft Unit:=wdCharacter, Count:=3
Selection.TypeText Text:=":0"
Selection.MoveRight Unit:=wdCharacter, Count:=3
Is there any way to integrate a paragraph mark into a wildcard search in VBA Word?
Thank you in advance for any replies.