E
Evens
How can you regenerate a complete table of content using code?
I have a form in the first page of my document and I dont want the entire
doc to be updated. In the second page, I have a table of contents and I want
to create a button who will regenerate the table with all the new points add
in the document.
I've try something like that:
Me.Protect (wdNoProtection)
Selection.WholeStory
Selection.Fields.UpdateSource
Me.Protect (wdAllowOnlyFormFields)
but first, the first line doesnt work because of the current protection and
doesnt want to remove it. And second point, I select the whole document and I
just want to select all but the first page.
Can you help me please!!!!
Thanks
I have a form in the first page of my document and I dont want the entire
doc to be updated. In the second page, I have a table of contents and I want
to create a button who will regenerate the table with all the new points add
in the document.
I've try something like that:
Me.Protect (wdNoProtection)
Selection.WholeStory
Selection.Fields.UpdateSource
Me.Protect (wdAllowOnlyFormFields)
but first, the first line doesnt work because of the current protection and
doesnt want to remove it. And second point, I select the whole document and I
just want to select all but the first page.
Can you help me please!!!!
Thanks