I
IndyPaul
I'm recording a macro to use across multiple documents. One task of the
macro is to select a text string in the document and then take actions with
multiple occurances of that string. The "non-programmed" way of doing this
is to select the string, copy it, open the find box, and paste the string
into the find window and click "Find Next."
When I record these actions, the actual selected text gets saved into the
macro as follows:
With Selection.Find
.Text = " Selected text"
The next time I run the macro, in another file, with a different text
string, the macro looks for the text string from the recorded file.
How can I search for text I select from the document I am actually editing?
Thanks
macro is to select a text string in the document and then take actions with
multiple occurances of that string. The "non-programmed" way of doing this
is to select the string, copy it, open the find box, and paste the string
into the find window and click "Find Next."
When I record these actions, the actual selected text gets saved into the
macro as follows:
With Selection.Find
.Text = " Selected text"
The next time I run the macro, in another file, with a different text
string, the macro looks for the text string from the recorded file.
How can I search for text I select from the document I am actually editing?
Thanks