I am losing data on a form that I created in word

J

Jennifer

I have created a template with form fields. If I protect/unprotect the
documents created from the template, I am losing data. Can anyone advise?

TIA! jennifer
 
J

Jonathan West

Jennifer said:
I have created a template with form fields. If I protect/unprotect the
documents created from the template, I am losing data. Can anyone advise?

TIA! jennifer

Yes. When protecting the document, use the Protect method with the NoReset
parameter set to True.

This article gives an example of how and when to do it.


How to enable the spellchecker in a protected document
http://www.word.mvps.org/FAQs/MacrosVBA/SpellcheckProtectDoc.htm

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

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