G
Greg Maxey
Sorry for the posting in the Userform group ;-(
I have some requirements to build TOCs using strictly TC fields (no styles).
I can do that easy enough by clicking on the InsertTOCdialog, clicking on
Options, and changing the Build table of contents from options 1. Uncheck
"Styles" 2. Uncheck "Outline levels" and 3. Check "table entry fields"
I want to do this programmatically. I have figured out how to uncheck
"Outline levels" and how to check "table field entries" but can find no way
to uncheck "Styles"
Sub InsertManualTOC()
Dim i As Long
Dim myArray() As String
With Dialogs(wdDialogInsertTableOfContents)
.UseOutlineLevel = 0
.Fields = 1
.Show
End With
End Sub
Anyone have any ideas?
Thanks.
I have some requirements to build TOCs using strictly TC fields (no styles).
I can do that easy enough by clicking on the InsertTOCdialog, clicking on
Options, and changing the Build table of contents from options 1. Uncheck
"Styles" 2. Uncheck "Outline levels" and 3. Check "table entry fields"
I want to do this programmatically. I have figured out how to uncheck
"Outline levels" and how to check "table field entries" but can find no way
to uncheck "Styles"
Sub InsertManualTOC()
Dim i As Long
Dim myArray() As String
With Dialogs(wdDialogInsertTableOfContents)
.UseOutlineLevel = 0
.Fields = 1
.Show
End With
End Sub
Anyone have any ideas?
Thanks.