How do I set the value of a textfield/bookmark from a UserForm?

[Note: This may be a duplicate message - my apologies.]

Re: Updating a TextField from a UserForm by Doug

Doug
Thu Aug 10 14:45:22 CDT 2006

If you are talking about a text formfield in a protected document, set the
.Result property to the text property of the control on the UserForm.

If you are just talking about a bookmark, use

ActiveDocument.Bookmarks("[bookmarkname]").Range.InsertBefore
[controlname].text

--
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

"dch3" <dch3@discussions.microsoft.com> wrote in message
news:4709EA24-0578-4B9D-BD49-0F53EF49E7FA@microsoft.com...
> How do I set the value of a textfield/bookmark from a UserForm?
>
> [Note: This may be a duplicate message - my apologies.]



Re: Updating a TextField from a UserForm by dch3

dch3
Thu Aug 10 15:13:02 CDT 2006

That will do the job. I was using the .Range property (if I recall correctly)
but not the .InsertBefore as a result the form field was being deleted.

"Doug Robbins - Word MVP" wrote:

> If you are talking about a text formfield in a protected document, set the
> ..Result property to the text property of the control on the UserForm.
>
> If you are just talking about a bookmark, use
>
> ActiveDocument.Bookmarks("[bookmarkname]").Range.InsertBefore
> [controlname].text
>
> --
> 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
>
> "dch3" <dch3@discussions.microsoft.com> wrote in message
> news:4709EA24-0578-4B9D-BD49-0F53EF49E7FA@microsoft.com...
> > How do I set the value of a textfield/bookmark from a UserForm?
> >
> > [Note: This may be a duplicate message - my apologies.]
>
>
>