From: Fred Kruger on
is there a way of using vba to put a fieldcode into a formfield.

I have a formfield with the bookmark text1 and I want to select this and
give it a fieldcode name of wit1 can it be done without using the
formfield.select and then unprotecting the document and using showfields and
then backwards and forwards to select the field and type in the field name.

Can it be done from selecting the formfield without having to unprotect the
document and use the moveleft , moveright to enter the field.

Thanks in anticipation
From: Doug Robbins - Word MVP on
See the article "How to assign a Name to a FormField that doesn't already
have a Name, using VBA” at:
http://www.word.mvps.org/FAQs/MacrosVBA/AssignNameToFmFld.htm


--
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, originally posted via msnews.microsoft.com

"Fred Kruger" <FredKruger(a)discussions.microsoft.com> wrote in message
news:7F92BDFB-A857-471B-B95F-2C7E2E6FABA5(a)microsoft.com...
> is there a way of using vba to put a fieldcode into a formfield.
>
> I have a formfield with the bookmark text1 and I want to select this and
> give it a fieldcode name of wit1 can it be done without using the
> formfield.select and then unprotecting the document and using showfields
> and
> then backwards and forwards to select the field and type in the field
> name.
>
> Can it be done from selecting the formfield without having to unprotect
> the
> document and use the moveleft , moveright to enter the field.
>
> Thanks in anticipation