Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replacing Code inside Field "SET"
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 |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replacing Code inside Field "SET"
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 -- 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 "paraakaram" wrote in message news 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 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
what does "Field code changed" mean? | Microsoft Word Help | |||
how do I set up a "expand/collapse" or "show/hide" field in Word | Microsoft Word Help | |||
If field code = "*" then paragraph changes | Mailmerge | |||
New field for Word: {SCREENTIP "DisplayText" "TipText"} | Microsoft Word Help | |||
Macro for the F1 "help text" key inside a form field | Microsoft Word Help |