View Single Post
  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default Searching and replacing form fields

Hi ?B?S2ltbWk=?=,

I'm talking about unprotected documents. I use form fields as a way of
people jumping to the next fill in spot using F11 key, but as they will also
be editing lots of other areas of the document it's not protected. One
example is a form text field containing [ as the default text. And we want
to be able to search and replace this in one go, without removing all field
codes from the document.

Well, since this is default text you can't remove it from the field. Your code
would need to change the default text property of that particular form field.
For example

ActiveDocument.FormFields(index).TextInput.Default = ""

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)