Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
paraakaram paraakaram is offline
external usenet poster
 
Posts: 3
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
what does "Field code changed" mean? Melissa Microsoft Word Help 2 April 21st 23 11:57 AM
how do I set up a "expand/collapse" or "show/hide" field in Word WordDoc_FeatureUser Microsoft Word Help 2 May 12th 07 06:29 PM
If field code = "*" then paragraph changes jermsalerms79 Mailmerge 5 April 11th 06 10:06 PM
New field for Word: {SCREENTIP "DisplayText" "TipText"} DQC from Prescott AZ Microsoft Word Help 1 March 17th 06 11:29 PM
Macro for the F1 "help text" key inside a form field Shari Microsoft Word Help 3 November 7th 05 11:56 PM


All times are GMT +1. The time now is 01:22 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"