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 / General MS Word Questions / March 2008

Tip: Looking for answers? Try searching our database.

Replacing Code inside Field "SET"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
paraakaram - 30 Mar 2008 23:05 GMT
Hi there,

I am using 2003, I am trying to write a macro which can do the following:

There are SET fields in my word document, I want to search these fields and
replace the Text inside these field with my Text

Regards
Paraakaram
Doug Robbins - Word MVP - 30 Mar 2008 23:21 GMT
What is the issue?

Dim afield As Field
For Each afield In ActiveDocument.Fields
   If afield.Type = wdFieldSet Then
       afield.Code = "your text"
   End If
Next afield

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Hi there,
>
[quoted text clipped - 6 lines]
> Regards
> Paraakaram

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.