M
mlsrinivas
Hi,
I am trying to process a set of documents and return the list of
documents with the text '_____' (five underscores).
Initially, I thought it was easy, but it is not the case. I tried using
I method:
Application.ActiveDocument.Select
With Selection.Find
.Forward = True
.ClearFormatting
.MatchWholeWord = True
.MatchCase = True
.Wrap = wdFindContinue
.Execute FindText:="_____"
End With
II method:
b = Selection.Find.Execute("_____", True, True, , , , True,
wdFindContinue)
In both the cases, 'MatchWholeWord' is not working. Even if there are
more than 5 underscores it is select.
Any clues, how to do this?
Thanks
Srinivas
I am trying to process a set of documents and return the list of
documents with the text '_____' (five underscores).
Initially, I thought it was easy, but it is not the case. I tried using
I method:
Application.ActiveDocument.Select
With Selection.Find
.Forward = True
.ClearFormatting
.MatchWholeWord = True
.MatchCase = True
.Wrap = wdFindContinue
.Execute FindText:="_____"
End With
II method:
b = Selection.Find.Execute("_____", True, True, , , , True,
wdFindContinue)
In both the cases, 'MatchWholeWord' is not working. Even if there are
more than 5 underscores it is select.
Any clues, how to do this?
Thanks
Srinivas