can't write to textfields

W

william

Hi,

i created a FORM for data entry, and for writing data to textfields in a document. the document is protected so that users can't delete the textfields. but, then i can't write data to the textfields. the error is "...the object refers to a protected area of the doc". do you have any idea/hint? this is the code.

ActiveDocument.FormFields("text3").TextInput.Clear
ActiveDocument.FormFields("text3").Result = txtToCompany

Set rng = ActiveDocument.FormFields("text3").Range

rng.Font.Size = 15
rng.Font.Name = "Arial"
rng.Bold = True


thank you very much.

william.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top