jazzyt2u
05-07-2009, 07:19 PM
Hi,
In 2007 I am copying words from Excel and finding them in Word. My problem is when there's data such as:
Strawberry Zinger
Strawberry
If I search for "Strawberry" in Word and Strawberry Zinger appears first in the Word Template it stops there even though I have .MatchWholeWord = True
'Ice Cream Names:
'Strawberry Zinger
'Strawberry Wave
'Strawberry
MyFlavor = Strawberry
With oWord.Selection.Find
.Forward = True
.MatchWholeWord = True
.Execute FindText:=MyFlavor
End With
Thank you,
Jazzyt2u
In 2007 I am copying words from Excel and finding them in Word. My problem is when there's data such as:
Strawberry Zinger
Strawberry
If I search for "Strawberry" in Word and Strawberry Zinger appears first in the Word Template it stops there even though I have .MatchWholeWord = True
'Ice Cream Names:
'Strawberry Zinger
'Strawberry Wave
'Strawberry
MyFlavor = Strawberry
With oWord.Selection.Find
.Forward = True
.MatchWholeWord = True
.Execute FindText:=MyFlavor
End With
Thank you,
Jazzyt2u