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