Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Lee Lee is offline
external usenet poster
 
Posts: 99
Default Forms, Templates and Protection

I've created a document that contains forms. I've protected the sections of
the document with the forms; however kept the Table of Contents and other
sections of the document unprotected. When I save this document as a
template for others to use .. two things happen: 1. When I open the template
the TOC pages numbers reflect only one page and 2. I can not update or toggle
the field codes with the TOC. Is there away to allow the TOC to be updated
within the template.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default Forms, Templates and Protection

Hi ?B?TGVl?=,

I've created a document that contains forms. I've protected the sections of
the document with the forms; however kept the Table of Contents and other
sections of the document unprotected. When I save this document as a
template for others to use .. two things happen: 1. When I open the template
the TOC pages numbers reflect only one page and 2. I can not update or toggle
the field codes with the TOC. Is there away to allow the TOC to be updated
within the template.

This is a known issue. "Macropod" posted the following solution quite some time
ago:

This is a 'known' bug, for which I've worked out a relatively simple
workaround:
*. Create a SET field named 'MyTOC' after the formfield
*. Cut and paste the real TOC into the SET field , thus:
* *{SET MyTOC {TOC}}
*. Update the new field. It will create a MyTOC bookmark and more or less
disappear.
*. Use a REF field where you want the TOC to appear, coded as:
* *{REF MyTOC} or, simply, {MyTOC}
*. lock the form and use in the normal way.
If you then do a print preview after updating the formfields, the page
numbers in the substitute TOC will update, though you might have to do a
print preview twice to get the right result (I'm not sure why, but it may
have something to do with the REF field being located before the bookmark it
refers to).

Alternative macro
Sub UpdateProtectedTOC()
Dim TOC As TableOfContents

With ActiveDocument
If .ProtectionType wdNoProtection Then
.Unprotect
End If

For Each TOC In .TablesOfContents
TOC.Update
Next

.Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True
End With
End Sub


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Protection & SpellCheck in Merged Forms [email protected] Mailmerge 6 March 7th 07 09:51 PM
Forms Protection Tonya Microsoft Word Help 1 November 16th 06 12:28 AM
Forms, Protection and EMBEDed PDF's Hal Levy Microsoft Word Help 1 July 31st 06 10:54 PM
why is data lost in forms when protection is changed WJJ Microsoft Word Help 1 November 5th 05 04:54 PM
Unknown Forms Protection password Ken dunn Page Layout 2 July 22nd 05 06:46 AM


All times are GMT +1. The time now is 08:27 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"