Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a table of contents based on the specified document and puts it in a new frame on the left side of the frames page.
Syntax
expression. TOCInFrameset
expression Required. A variable that represents a 'Pane' object.
Remarks
For more information on creating frames pages, see Creating frames pages.
Example
This example opens a file named "Proposal.doc", creates a frames page based on the file, and adds a frame (on the left side of the page) containing a table of contents for the file.
Documents.Open "C:\Documents\Proposal.doc"
ActiveDocument.ActiveWindow.ActivePane.NewFrameset
ActiveDocument.ActiveWindow.ActivePane.TOCInFrameset
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.