D
D Collins
Hello,
I have a user form that locates certain words, like a
spellcheck dialog would do. It locates the word, then I
allow the user to edit it (by making the form modeless),
then the user presses a button to do the search again.
My question: Each time the user presses the search
button, it's activating the code again. Is there a way
to keep track of whether or not you have searched the
entire document for this word? I know that spellcheck
does this by telling you that you've reached the end.
I'm assuming that a loop would not accomplish this, as I
need for the user to interact with the first word it
finds in the search, hence I've made the form modeless
and I needed the rest of the code to stop for a moment.
Thanks, D.
I have a user form that locates certain words, like a
spellcheck dialog would do. It locates the word, then I
allow the user to edit it (by making the form modeless),
then the user presses a button to do the search again.
My question: Each time the user presses the search
button, it's activating the code again. Is there a way
to keep track of whether or not you have searched the
entire document for this word? I know that spellcheck
does this by telling you that you've reached the end.
I'm assuming that a loop would not accomplish this, as I
need for the user to interact with the first word it
finds in the search, hence I've made the form modeless
and I needed the rest of the code to stop for a moment.
Thanks, D.