C
cyberdude
Hi,
I am going to write 2 VBA programs to do find-and-replace, though I
know that there is a built-in find-and-replace function in Word.
The 1st program finds the word which I specify and is also in red.
The program replaces them by the word that I enter. For example, the
word "name" is in red and appears at different places in a Word
document, I want to use the 1st program to find all of it and replace
them by "John" one by one.
The 2nd program finds all the words in red and the program replaces
them by the word that I enter. For example, the words "name",
"address" and "phone" are red in a document, and I want to use the 2nd
program to find them and replace them by "John", "England" and
"123456" respectively.
Can someone give me hints on doing the above with VBA? Thanks.
Mike
I am going to write 2 VBA programs to do find-and-replace, though I
know that there is a built-in find-and-replace function in Word.
The 1st program finds the word which I specify and is also in red.
The program replaces them by the word that I enter. For example, the
word "name" is in red and appears at different places in a Word
document, I want to use the 1st program to find all of it and replace
them by "John" one by one.
The 2nd program finds all the words in red and the program replaces
them by the word that I enter. For example, the words "name",
"address" and "phone" are red in a document, and I want to use the 2nd
program to find them and replace them by "John", "England" and
"123456" respectively.
Can someone give me hints on doing the above with VBA? Thanks.
Mike