I beleive this indicates that the referenced member of BuildingBlockEntries (e.g. Run-time error 5941 The requested member of the collection does not exist Insert Where:=Selection.Range, RichText:=True ' Macro to insert a table of contents styled like Automatic Table 2Ī("Automatic Table 2"). However, when I attempt to insert a styled table of contents as follows: Sub InsertStyledTOC() TablesOfContents(1).TabLeader = wdTabLeaderDots UseHyperlinks:=True, HidePageNumbersInWeb:=True, UseOutlineLevels:= _ LowerHeadingLevel:=3, IncludePageNumbers:=True, AddedStyles:="", _ True, UseHeadingStyles:=True, UpperHeadingLevel:=1, _ TablesOfContents.Add Range:=Selection.Range, RightAlignPageNumbers:= _ basic) table of contents as follows: Sub InsertTableOfContents() I successfully defined a macro to insert a non-styled (e.g. I would like to define a macro in Microsoft Word 2007 that inserts a table of contents with the provided automatic styles when a hotkey is pressed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |