Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2005

Tip: Looking for answers? Try searching our database.

macro to find field code in multiple headers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bcecava@ameritas.com - 24 Feb 2005 12:49 GMT
Hello,

I am trying to create a macro that does a find and replace on a field
code only in the header sections of a document.  The document has
several diffenet header sections and I am trying to search for
variations of the PRINT code and replace it with blank ("").  An
example of this is { PRINT 27 \p para  \* MERGEFORMAT }.  I used this
code .Text = "^d PRINT" to search for the field code and it seems to
work, but not through all the different header sections.

Thanks for any help.

Brian
Helmut Weber - 24 Feb 2005 15:45 GMT
Hi Brian

http://word.mvps.org/faqs/customization/ReplaceAnywhere.htm

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.