Form in Word data keeps getting wiped out

I have a protected Word form that I got from someone. Every so often, I think it happens when I edit one of the FORMTEXT fields, my data keeps on getting wiped out, and I need to start over from scratch.

PLEASE can someone help me?
LVL 10
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

web_trackerComputer Service TechnicianCommented:
Is the form that someone sent you write protected? Or can only be viewed and not edited? What I would do is copy the form, then create a new document, then paste the form in the new document, you should be able to enter data into the form then save it, as a new document.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Word used to clear the data in form fields when protection was turned on.

It is still the default when protection is set via VBA. Perhaps the someone has put some code in to turn the protection off and on again and has forgotten to set the NoReset parameter to True
Does your version of WORD match the one the file was created it in?  It shouldn't matter, but perhaps the creator of the file could save it down a version to see if you continue to have the same problem.

Also, I agree about creating a new file or as soon as you open it, do a SAVE AS and give it a new name.
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

etech0Author Commented:
Thanks for your prompt responses.

It is write protected, without a password.

When I received it (about a month ago) I copied it into a new document to edit it. I've been using it since, and only had that problem yesterday and today.

The document was a .doc. I tried saving it as .docx, but it didn't help.

When I open it, I get a message that macros have been disabled. But when I go into the VBE, there are no macros! How can I check if the form is protected via VBA if there is no VBA code in the document? Can VBA be hidden?

It is just possible that there are Exit (or Enter) macros set to be called from one or more of the form fields. It there are macros of that name in a global (e.g. the Normal) template, they could be firing.

The document might have become corrupt,  do it could be worth copying the open, unprotected document and pasting to a blank document
etech0Author Commented:
I tried copying into a new document and saving as, we'll see what happens.

How can I check for exit or enter macros?
This would permit disabling running a macro at startup:

However, I am not certain this is what you really want, thought it may be a temp workaround.

Depending on your WORD version:
This allows for turning off form protection without losing the input values:
Sub ToggleFormProtect()
   If ActiveDocument.ProtectionType = wdNoProtection Then
      ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
      MsgBox "The document has been protected"
      MsgBox "The document is now unprotected"
   End If
End Sub

Open in new window

And one of my favorite MVP sites for macro help (or reference)
etech0Author Commented:
Thanks, all! Copying to a blank document did the trick.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Word

From novice to tech pro — start learning today.