Find and Replace macro

J

Juan

Hi everyone,

I have a very simple macro that all it does is search and replace for text
in the document. The problem is that it doesn´t find nor replace the text
inside footers and headers. However, if I use Find and Replace from the Edit
menu... works ok. It's weird, since I irecorded the macro using that menu.

Any ideas?

Thanks, from Spain.

Juan
 
D

Doug Robbins - Word MVP

Hi Juan,

See the article “Using a macro to replace text where ever it appears in a
document including Headers, Footers, Textboxes, etc.” at:

http://www.mvps.org/word/FAQs/MacrosVBA/FindReplaceAllWithVBA.htm

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
J

Juan

Thanks Doug,

now I only have to "translate" it to C#, which is the language our App is
written in, and I´ll let you know th outcomes.

From Spain

Juan Magaña
 
D

Doug Robbins - Word MVP

Sorry, I can't help you with that.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
J

Juan

Doug,

traslation to C# was easy, that part is not that hard for me. That's why I
ask stuff that I can´t figure out myself in the vba group, because normally
is very easy to put in C#.

It's already working like a charm.... thanks again for the tip.
 

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