Results 1 to 6 of 6
  1. #1
    New Lounger
    Join Date
    Jan 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Protected FormText Fields (Word 2003)

    I am looking at an issue where there are hundreds of forms that someone created years ago on Word 97. Each form has anywhere from 20 to 50 "FormText" or "FormCheckbox" fields in them. They are mostly 1 to 2 page forms. There are users with Word 2000 and Word 2003 that are now having trouble opening these forms to create new documents. I have determined that if I either remove and reinsert all of the FormText fields or just go into the properties of every FormText field in the document - that will clear up the very long delay in opening these forms. The other interesting facts are that unprotecting the form or removing an "AutoText" template from Startup will cause the form to open quickly.

    My first thought is - is there a change in field codes from Word 97 to Word 2000-2003 that would cause this? I looked in all of the field properties to see if there was "Help Text" setup searching for now undefined autotext.

    Any thoughts - besides manually cleaning up the 100's of forms?

    Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Protected FormText Fields (Word 2003)

    Welcome to Woody's Lounge!

    What happens if you unprotect such a document, then protect it again? Does the slowness return?

  3. #3
    New Lounger
    Join Date
    Jan 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Protected FormText Fields (Word 2003)

    Yes. It opens fine if the form is unprotected, but as soon as you turn protection on again - the slowness returns. And, as a matter of fact, it continues to get increasingly slower each time you try to open one of these forms - to the point that after working with a form 5 or 6 times, the screen will "white out" just opening the form.

    Thanks.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Protected FormText Fields (Word 2003)

    I cannot find anything about this problem (but that doesn't say much).

    Could you test the following macro on a copy of one of the documents (or templates, opened as a document)?

    Sub ReplaceFF()
    Dim i As Long
    Dim rng As Range
    ActiveDocument.Unprotect
    For i = ActiveDocument.FormFields.Count To 1 Step -1
    Set rng = ActiveDocument.FormFields(i).Range
    rng.Cut
    rng.Paste
    Next i
    ActiveDocument.Protect ProtectionType:=wdAllowOnlyFormFields, NoReset:=True
    Set rng = Nothing
    End Sub

    It cuts each formfield from the document, then pastes it back. I doubt that it'll help, but it it does, the macro could be expanded to process all documents/templates in a folder.
    Note: if the document has been protected with a password, you'll have to add

    , Password:="secret"

    (or whatever the password is) to both the line that unprotects the document and the line that reprotects the document.

  5. #5
    New Lounger
    Join Date
    Jan 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Protected FormText Fields (Word 2003)

    Hans, thanks. I ran the posted code. Did see it work through and copy/paste the fields, but the form is still "SLOW" when opening. Thanks for your help.

    sm

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Protected FormText Fields (Word 2003)

    I was afraid of that. I hope someone else will have a workable suggestion. <img src=/S/crossfingers.gif border=0 alt=crossfingers width=17 height=16>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •