Intercept word's built-in command "Search and Replace (with its tabs"search, replace, GoTo)"

A

andreas

Dear Experts:

I would like to intercept Word's built in command for Search and
Replace in a Macro.

How?

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
 
T

Tony Jollans

Just create macros called EditFind, EditReplace, and/or EditGoto and they
will be run instead of the respective commands.
 
A

andreas

Just create macros called EditFind, EditReplace, and/or EditGoto and they
will be run instead of the respective commands.

--
Enjoy,
Tony

 www.WordArticles.com








- Zitierten Text anzeigen -



Hi Tony,

thank you very much for your swift help.

Oh, I think I was asking the wrong question. I was gonna ask how I can
call up the 'Search-And-Replace' Dialog-Field in a word 2003 macro?

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
 
T

Tony Jollans

Is this what you want?

Dialogs(wdDialogEditReplace).Show

also, perhaps ...

Dialogs(wdDialogEditFind).Show
Dialogs(wdDialogEditGoTo).Show

--
Enjoy,
Tony

www.WordArticles.com

Just create macros called EditFind, EditReplace, and/or EditGoto and they
will be run instead of the respective commands.

--
Enjoy,
Tony

www.WordArticles.com








- Zitierten Text anzeigen -



Hi Tony,

thank you very much for your swift help.

Oh, I think I was asking the wrong question. I was gonna ask how I can
call up the 'Search-And-Replace' Dialog-Field in a word 2003 macro?

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
 
A

andreas

Is this what you want?

Dialogs(wdDialogEditReplace).Show

also, perhaps ...

Dialogs(wdDialogEditFind).Show
Dialogs(wdDialogEditGoTo).Show

--
Enjoy,
Tony

 www.WordArticles.com





Hi Tony,

thank you very much for your swift help.

Oh, I think I was asking the wrong question. I was gonna ask how I can
call up the 'Search-And-Replace' Dialog-Field in a word 2003 macro?

Help is much appreciated. Thank you very much in advance.

Regards, Andreas- Hide quoted text -

- Show quoted text -

Hi Tony,

exactly what I was looking for! Thank you very much for your
professional help.
Regards, Andreas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top