Hint: Consistently formatting your headers will ensure your table of contents is properly paginated. Step 2: Highlight the first heading and select Heading 1. 2011 Microsoft Word Table of Contents (Mac) Step 1: Open your document and locate the Home tab. To show the Developer tab:In this article I’ll show you how to create a table of contents (ToC) in Word 2013but you’ll use the same process to create one in Word 2010, Word 2007 and Word 2011 for the Mac.
Insert Table Of Contents In Word 2011 Code Window OfIn the code window of the module, type or copy the following macro code:‘If the TOC sheet already exist delete it and add a new.Value = VBA.Array(“Table of Contents”, “Sheet # – # of Pages”)‘Iterate through the worksheets in the workbook and create‘sheetnames, add hyperlink and count & write the running number‘of pages to be printed for each sheet on the TOC sheet.SubAddress:=”‘” & wsSheet.Name & “‘!A1”, _LnPages = wsSheet.PageSetup.Pages().Count.Cells(lnRow, 2).Value = “‘” & lnCount & “-” & lnPagesWsActive.Columns(“A:B”).EntireColumn.AutoFitNow, save your workbook with the macro code. In the Visual Basic Editor, on the Insert menu, click Module. On the Developer tab, in the Code group, click Visual Basic. ICT-instructor LTU Christer Wahlberg MS Word 2011. Under Customize the Ribbon, select the Developer check box.Create a report with formatting, headings, page numbers and table of contents.To set the security level temporarily to enable all macros, do the following: You might need to change your macro security settings to enable macros. On the File menu, click Save As, and then save the file as an Excel Macro-Enabled Workbook (.xlsm).You are almost ready to run the code.![]() In the Macro window, select the Create_TOC macro, and click Run. On the Developer tab, in the Code group, click Macros. Note To help prevent potentially dangerous code from running, we recommend that you return to any one of the settings that disable all macros after you finish working with macros.And now you can run the code that creates the table of contents worksheet! Under Macro Settings, click Enable all macros (not recommended, potentially dangerous code can run), and then click OK.
0 Comments
Leave a Reply. |
Details
AuthorAnnthea ArchivesCategories |