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

Re: Find and Replace macro by Doug

Doug
Wed Nov 05 08:04:13 CST 2003

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
"Juan" <juan_magana@hotmail.com> wrote in message
news:boas8a$1c8bfv$1@ID-190641.news.uni-berlin.de...
> 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
>
>



Re: Find and Replace macro by Juan

Juan
Wed Nov 05 10:26:54 CST 2003

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


"Doug Robbins - Word MVP" <dkr@mvps.org> escribió en el mensaje
news:eI87xW6oDHA.1408@TK2MSFTNGP11.phx.gbl...
> 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
> "Juan" <juan_magana@hotmail.com> wrote in message
> news:boas8a$1c8bfv$1@ID-190641.news.uni-berlin.de...
> > 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
> >
> >
>
>



Re: Find and Replace macro by Doug

Doug
Wed Nov 05 23:22:49 CST 2003

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
"Juan" <juan_magana@hotmail.com> wrote in message
news:bob8cn$1b6rfv$1@ID-190641.news.uni-berlin.de...
> 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
>
>
> "Doug Robbins - Word MVP" <dkr@mvps.org> escribió en el mensaje
> news:eI87xW6oDHA.1408@TK2MSFTNGP11.phx.gbl...
> > 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
> > "Juan" <juan_magana@hotmail.com> wrote in message
> > news:boas8a$1c8bfv$1@ID-190641.news.uni-berlin.de...
> > > 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
> > >
> > >
> >
> >
>
>



Re: Find and Replace macro by Juan

Juan
Thu Nov 06 02:33:16 CST 2003

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.


"Doug Robbins - Word MVP" <dkr@mvps.org> escribió en el mensaje
news:%23LBpFYCpDHA.1496@TK2MSFTNGP11.phx.gbl...
> 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
> "Juan" <juan_magana@hotmail.com> wrote in message
> news:bob8cn$1b6rfv$1@ID-190641.news.uni-berlin.de...
> > 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
> >
> >
> > "Doug Robbins - Word MVP" <dkr@mvps.org> escribió en el mensaje
> > news:eI87xW6oDHA.1408@TK2MSFTNGP11.phx.gbl...
> > > 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
> > > "Juan" <juan_magana@hotmail.com> wrote in message
> > > news:boas8a$1c8bfv$1@ID-190641.news.uni-berlin.de...
> > > > 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
> > > >
> > > >
> > >
> > >
> >
> >
>
>