Here is the code I am using to enter text from a text box in a userform into a formfield in a word document.
Set product = ActiveDocument.FormFields("ProductName").Range
product.Text = userform.productname
This is great apart from the fact that it deletes the form field when entering the text so if the user updates at a later date the form field is non existant.
i have searched around and remember reading somewhere about how to insert formfields but can't find it again.
any help would be great I assume i need to replace teh form field after entering the text how do i do this so that it wraps the text but also will be invisible when printing.
thanks dusty
Set product = ActiveDocument.FormFields("ProductName").Range
product.Text = userform.productname
This is great apart from the fact that it deletes the form field when entering the text so if the user updates at a later date the form field is non existant.
i have searched around and remember reading somewhere about how to insert formfields but can't find it again.
any help would be great I assume i need to replace teh form field after entering the text how do i do this so that it wraps the text but also will be invisible when printing.
thanks dusty