C
Culichi
Mornin'
What can I include in a .Find series of code that will let me give an
alternative order if the searched-for text is not found? The search
takes place inside a "For...Each..." series that gets search text from a
table cell. So far, it looks like this:
For Each . . .
. . .
With DoSearch
.ClearFormatting
.MatchCase = True
.Wrap =wdFindAsk
.Execute FindText:=TCellText.Text ^p
End With
. . .
Next
I think I can give it an alternate set of orders if wdFindAsk dialog
appears, but I can't figure out how to reference a dialog that I don't
specifically ask for.
A better solution would be to turn .Wrap off, and just give it a command
to do something if the find is unsuccessful after one trip through the
document. Can anyone tell me how an If...Then... (or some other order)
can reference the action of getting an empty Find/Search?
Many Thanks! You you all are unbelievably helpful!
Kelley
What can I include in a .Find series of code that will let me give an
alternative order if the searched-for text is not found? The search
takes place inside a "For...Each..." series that gets search text from a
table cell. So far, it looks like this:
For Each . . .
. . .
With DoSearch
.ClearFormatting
.MatchCase = True
.Wrap =wdFindAsk
.Execute FindText:=TCellText.Text ^p
End With
. . .
Next
I think I can give it an alternate set of orders if wdFindAsk dialog
appears, but I can't figure out how to reference a dialog that I don't
specifically ask for.
A better solution would be to turn .Wrap off, and just give it a command
to do something if the find is unsuccessful after one trip through the
document. Can anyone tell me how an If...Then... (or some other order)
can reference the action of getting an empty Find/Search?
Many Thanks! You you all are unbelievably helpful!
Kelley