Xu Hướng 12/2023 # How To Create And Manage A Table Of Contents In Microsoft Word # Top 13 Xem Nhiều

Bạn đang xem bài viết How To Create And Manage A Table Of Contents In Microsoft Word được cập nhật mới nhất tháng 12 năm 2023 trên website Hoisinhvienqnam.edu.vn. Hy vọng những thông tin mà chúng tôi đã chia sẻ là hữu ích với bạn. Nếu nội dung hay, ý nghĩa bạn hãy chia sẻ với bạn bè của mình và luôn theo dõi, ủng hộ chúng tôi để cập nhật những thông tin mới nhất.

Using a table of contents in your document makes it easier for the reader to navigate. You can generate a table of contents in Word from the headings used in your document. Here’s how to do it.

Add a Table of Contents

Regardless of the size of your document, using a table of contents can direct the reader to exactly where they need to be. In addition to making the document more reader-friendly, a table of contents also makes it easier for the author to go back and add or remove content if necessary.

By default, Word generates a table of contents using the first three built-in heading styles (Heading 1, Heading 2, and Heading 3). To apply heading styles, select the particular style from the “Home” tab. If you’re not happy with the types of heading styles available, you can change the default heading style.

You can manage this in two different ways. You can either apply the heading styles to each section after you’ve finished the document, or you can add them as you go.

Once you’ve applied your heading styles, it’s time to insert your table of contents.  The first thing you need to do is put the cursor where you want the table of contents to appear. Once ready, head over to the “References” tab and select “Table of Contents.”

Advertisement

A drop-down menu will appear. Here, you can choose between the three different built-in tables.

The only difference between Automatic Table 1 and 2 is the title, which is “Contents” and “Table of Contents,” respectively. Selecting either Automatic Table 1 or 2 will create the table of contents using the names of the headings.

If you chose the “Manual Table” option from the “Table of Contents” drop-down menu, then it will insert a template for you that you will need to edit yourself.

You may notice in this table of contents that there are sub-levels. Each level represents a heading style in your document. So if you use the automatic table and you want sub-levels in your ToC, you will need to use heading 1 for level 1, heading 2 for level 2, and heading 3 for level 3.

Advertisement

Updating the Table of Contents

Your table of contents will now be updated.

Removing the Table of Contents

At the bottom of the drop-down menu, select “Remove Table of Contents.”

Your table of contents will now be removed from your document.

How To Create A Table Of Contents In Microsoft Word

How to create a Table of Contents

Apply the built-in Heading styles to the headings in your text.

Creating a table of contents in a Microsoft Word document is a two-step process. First, identify the text that you want to appear in the Table of Contents. Second, tell Word to insert the Table of Contents. Having created your Table of Contents, you can then customize it in several ways, to suit your needs.

On this page

Identify the text that you want to appear in the Table of Contents

If these don’t appeal to you, there are several other ways to apply a style.

In the same way, apply the Heading 1 style to other major headings in your document. Apply the Heading 2 style to sub-headings, Heading 3 style to sub-sub-headings etc.

If you don’t like the way the heading styles look (eg, you want a different font or font size or colour), don’t format the text directly. Instead, modify the heading styles.

Create the Table of Contents Word 2003 and earlier versions

Display the Table of Contents dialog. To do that:

Word 2007 and Word 2010

Choose one of the following items on the menu.

There is a built-in “Manual Table”. This takes you back to the era of the electric typewriter. If you like typing things out for no good reason and your life expectancy is a lot longer than mine, this is for you.

At the bottom of the menu, you can choose Insert table of contents. This displays the Table of Contents dialog that was also in earlier versions of Word. If you want two or more tables of contents in one document, you must choose this option for at least the second and subsequent tables of contents.

Using a table of contents content control in Word 2007 or Word 2010

You can use the content control to manage your table of contents (Figure 1).

Figure 1: A table of contents in a content control

If you attempt to insert another custom or built-in table of contents that will be placed in a content control, then the new one will over-ride the existing one. If you want more than one table of contents in a document, use the “Insert table of contents” menu option for all, or at least the second and subsequent, tables of contents.

How to create a custom table of contents and have it appear on the Table of Contents menu in Word 2007 or Word 2010

Insert your table of contents into any document, and adjust it to suit your needs.

Add text above and/or below the table of contents as required (for example, add a heading “Table of Contents”, preferably formatted with the built-in TOC Heading style).

Select the text above, the table of contents, and the text below.

In the Create New Building Block dialog:

give your table of contents a name

in the Gallery list, choose Table of Contents

in the Category list, choose ‘Create new category’ and name your new category

Word displays entries in the menu in alphabetical order by category. Sadly, there are few letters in the alphabet before the “B” for “Built-In”. If you want your custom tables of contents to appear before the Built-In category, but there is no name between “A” and “Built-In” that suits you, then put a space at the beginning of the category name. For example, name your category ” Shauna”. A space is alphabetized before a letter, so ” Shauna” will be displayed before “Built-In”.

Customize the Table of Contents (if you need to) How to change the look of the headings in the document

Use the Document Map

How to change the look of the Table of Contents itself

To modify the Table of Contents itself, you need to display the Table of Contents dialog. To display the dialog for an existing table of contents:

From the Table of Contents dialog you can modify the Table of Contents in several ways.

By default, Word shows three levels in your Table of Contents. That is, it puts the text from Heading 1, Heading 2 and Heading 3 in the Table of Contents. If you want to show more or fewer levels, in the Table of Contents dialog, change the number in the Show levels box.

For sophisticated customization, you can edit the switches in the TOC field.

How to create a table of contents for several documents

To create one table of contents for several documents, you need to do the following.

Create a separate document to hold the table of contents (we’ll call this “the ToC document”).

For ease, put all the documents, and your ToC document, in the one folder.

In your ToC document, use an RD (Reference Document) field for each document that you want to include in your Table of Contents.

To insert an RD field, do ctrl-F9 and, within the brackets that Word gives you, type RD “filename“. For example { RD “Chapter 1.docx” }. You can’t type the curly brackets by hand. You must do ctrl-F9.

If you can’t put all your files in one folder, you must use double backslashes and double quotes. For example, { RD “C:\My folder\Chapter 1.docx” }.

Add an RD field for each document that you want to reference, in order.

Create the Table of Contents in this ToC document in the usual way.

Remember the page number rule: “The Table of Contents will pick up whatever pagination appears in your document”. It applies when using RD fields to create a ToC for many documents. You may have to set the starting page number manually in each document if you want pagination to run consecutively through your project.

Other tips about Tables of Contents

If you have Word 2003, Microsoft has some great online training about Tables of Contents available for free. See

A Table of Contents is a field, not ordinary text. To see fields in your document, you can tell Word to display fields with grey shading. The grey doesn’t print, but it reminds you that this is a field, not ordinary text. To display fields with grey shading:

Tables of Contents don’t update automatically when you add a new heading to your document. This is because a ToC is a field. To update a Table of Contents, put your cursor in the Table of Contents and press F9 to update it. Or ctrl-a F9 to update all fields in the document. In Word 2007 and Word 2010, if your table of contents is in a content control, you can use the content control to update the ToC.

When you update your Table of Contents, always choose to update the Entire Table (Figure 2).

Figure 2: Whenever you see this box, always choose the second option and update the entire table.

The Table of Contents will pick up whatever pagination appears in your document. To control page numbers, see How to control the page numbering in a Word document at the Word MVP FAQ site

If the tabs in your Table of Contents seem to have gone crazy, see Whenever I update my Table of Contents it acquires unwanted tabs, and I have to press Ctrl+Q to get rid of them at the Word MVP FAQ site

To solve the problem, select the whole of the Table of Contents (selecting a few paragraphs either side is OK). Do Shift-F9. You’ll see the field codes exposed, and they’ll look something like { TOC o “1-3” h z }. Edit these codes to remove the h. Press F9 again to re-generate the ToC and hide the field codes. (By the way, you can’t type the curly brackets yourself. If won’t work. If you want to type out the field codes manually, use ctrl-F9 to create the curly brackets.)

Note: It is also possible to create a Table of Contents by marking each individual paragraph that you want to appear in the ToC. Then, you tell Word to use your marked paragraphs to create the ToC. You do this using { TC } fields. It seems to me that the chance of human error in accidentally omitting to mark a heading is large. I wouldn’t risk it. But if you’re interested, look at Word’s help under TC.

Related pages

How to number headings and figures in Appendixes in Microsoft Word – includes information on creating a table of contents when you have appendixes in your document

How to use the Document Map in Microsoft Word – the Document Map roughly mirrors your table of contents

How To Update Table Of Contents In Word

If you’ve ever tried to create or update a Table of Contents (TOC) in Microsoft Word, you’ll know that they can be a little difficult to get just right.

That’s why we have them already set up in all our Course Books and Workbooks. It’s just a matter of making sure that anything you want in the TOC has a Heading1 or Heading2 style on it. Then, when you create a Table of Contents, that text and the page numbers where it appears shows up.

However, TOCs have to be updated any time you make a change in your document. If you add something, change titles, or delete pages, it affects the whole Table. Then you’ll need to ‘update’ it.

Here’s a video demo of what you need to do whenever you change something that affects page numbering, or if you want to update the whole TOC. I used the Course Book from our ‘Blaze’ course, Shoestring Budget Startup, in the video:

Here’s an overview of all the steps from the video:

You’ll see that the whole area becomes grayed-out.

You’ll see a box pop-up with a few options. We’re just focusing on one here.

If you’ve made change to titles, or added or deleted sections, you’ll see a couple options.

Use ‘update page numbers only’ if you want to keep the table exactly as-is and just update the numbering. (Eg, if you’ve edited and added or deleted something that affects the numbering only.)

Use ‘update entire table’ if you want Word to regenerate the Table. You’ll need to do this if you’ve changed wording in Heading 1 or 2 titles in particular.

Step 5. Make any manual edits you need

When you ‘update entire table’, everything that has the style Heading 1 or 2 on it will show up in the table. However, this may include the title page and the Table of Contents itself.

You don’t need those in your TOC, so you can go into it manually and delete those lines.

You can also edit the font and manually change anything else after you’ve updated the table. Just put your mouse where you want to make edits and go ahead and edit as if you were in any other part of the document.

We usually manually delete the title page reference and the Table of Contents listing (since they’re already on that page anyway) when we create the TOC for you.

Now you know how to do the updates to the Table of Contents yourself!

Please let me know if that wasn’t clear and I’ll explain further 🙂

How Do I… Create And Format Tables In Word 2003?

This article was originally published on January 1, 2006.

If you’re a regular reader on TechRepublic, you may have seen my series covering various features in Microsoft Excel. While I am finished with that particular series (unless you send ideas for things you’d like to see, of course!), I will be tying this new series -all about Word-in with Excel fairly tightly.

That said, I won’t be doing much integrating with Excel in this particular article, which focuses on tables in Microsoft Word.

A little about this series

I mentioned above that tables are useful for a number of purposes. To that end, I will focus on two common uses of tables after providing an introduction:

How tables work

Using tables to create professional-looking forms

A lot about tables

The tables feature is so useful and popular in Word that Microsoft has devoted an entire menu ( Figure A) to this feature.

Over the course of this three-article series, we’ll cover every option on this menu.

Into this grid, you can put anything you like: text, numbers, pictures — whatever goes into Word will go into a table, too.

Creating a table

When you use the Insert Table button, you get a miniature grid. Using this grid, you tell Word how large you would like your table. In Figure C, a table that is three columns wide and two rows deep would be created. If you make a mistake with the number of rows and columns, don’t worry too much about it. You can always change it later.

In Figure D, notice that the dialog box tells you exactly how many rows and columns will be created for your new table — in this case, five columns and two rows. If you go this route, again, don’t worry if you make a mistake.

For example, rather than the usual row and column format, you could create a table that looks something like the one shown in Figure E.

Navigating your table Adding and deleting rows and columns

It’s easy to add rows to the end of your table, but what if you need to sneak something in between two rows you already have, or you need to add a column? What about deleting a row or column? No problem.

Shortcuts for adding and deleting rows and columns Formatting your table

Just like everything else in Word, your table can be formatted with different fonts, colors, line styles, and more. And even after your table is initially created, you can add and remove borders to create a custom table like the one you saw in Figure E.

Changing the line weight, color, and style

Most tables have some kind of grid. But in Word, you can keep the table and remove the grid, change the grid line style to some other type, and change the color of the lines altogether.

On the toolbar ( Figure I), the four options to the right of the Eraser button handle the line styles in your table.

Figure K below shows you an example of what different borders might look like in your table.

Changing the alignment in each cell

You can also change the position of the text in each individual cell in your table. In some cells, you might want the text centered both horizontally and vertically, while in another cell, you might want the text aligned at the bottom-right corner. This is where the cell alignment options come in ( Figure L).

Using this drop-down list, you can quickly change the position of text in your table. Take a look at Figure M to see an example of what you can do. Figure M shows you all of the available alignment options.

Distribute rows and columns

Are you a neat freak? Or do you just want to make sure that your table looks professional? One way you can do that is to make sure your rows and columns are sized appropriately. For example, if you’re showing monthly budget information, your column widths for each month should look the same rather than being all different sizes. Take a look at Figure N to see what I mean.

It’s actually easy to make your table look neat: Use the Distribute Rows Evenly and Distribute Columns Evenly buttons on the toolbar ( Figure O).

You can also manually change the width of a column or the height of a row ( Figure P). When you’re in your table, take a look at both your horizontal and your vertical ruler bars. Each one is broken up with a control that just happens to be at the break point for each row and column.

AutoFormat

From this window, you can peruse the multitude of styles provided by Word, make a modification to one of the templates, or even create your own style. The AutoFormat option allows you to specify which areas you will apply to your table. For example, if you don’t have a header row on your table, you might now want to have the special boldfaced heading text, so you can deselect the Heading Rows option. Figure R shows you the results of using AutoFormat on the mini-budget table. Note that every other line is shaded in this example. Doing that manually on a large table could take quite some time.

Formatting options

Creating, customizing, and formatting tables in Word is largely a function of the specialized Tables And Borders toolbar. With Word, you can create tables of practically any size and shape.

How To Create Macros In Microsoft Word 2023 And 2023?

Applicability: Word 365, 2023, 2023; Windows and MAC OS X operating systems.

Here’s a question from a reader::

Enabling the developer tab in Word

If you don’t see the Developer tab in your Microsoft Word Ribbon, you’ll need to setup your Macro development environment.

Open a new Word document. In case that you would like to work on an existing file, ensure that you have a copy for backup, before making any changes.

Now, go ahead and make the developer menu visible in the Ribbon.

Recording a Word Macro – a practical example

Now, hit the newly added Developer tab.

Go to the Code button group.

Note: Although it’s possible to assign Macros to buttons , for simplicity we’ll run Macro manually via the View tab or Developer tabs.

Execute the sequence of steps you would like to record. In this case, you’ll record the following steps:

Select a specific paragraph in your document.

Go to the Home tab.

Set the font to Times New Roman.

Set the Font Size to 16.

Center your Text by hitting Ctrl +E.

Once Done, return to the Developer tab and hit Stop Recording.

Now let us take a look at the auto-generated VBA code. Hit Macros and then highlight the AutoFormat Macro and hit Edit.

Close the VBA Editor.

Save your work in a Word Macro enabled template

In the Save As dialog right hand side, determine your saving location and provide a meaningful name to your Workbook.

Choose Word Macro Enabled Document as your document type. Note: Your Word document will be saved with the .docm suffix.

Hit the Save Button.

Executing your macro

Open your Word document.

Select the Paragraph you would like to automatically format. Just as an example, here’s the paragraph i chose:

Go to the View tab.

Hit the Macros button.

Select your AutoFormat Macro

Hit Run – this will apply the macro on the selected paragraph.

Assigning your Macro to Buttons or keyboard shortcuts

Note: This is an optional step that should be attempted after you have followed the Macro recording tutorial above.

OK, so far we got our Macro basics working. Now it’s time to improve a bit our Macro usability in the Word doc. Let me show you how you can associate your Macro with a quick access button, so you can launch it more easily.

The Word Options dialog will come up.

In the Choose commands from dropdown, select Macros.

Hit the Modify… button to define a suitable icon for your Macro.

Define a Display name for your button.

Hit OK.

Now, you can launch your Macro from the Quick Access Toolbar, just above the Ribbon.

Note: You are able to associate your Word Macro not only with quick access buttons but also with command buttons embedded in your document and specific custom keyboard shortcuts.

Creating Word Macros using VBA

With some simple Visual Basic for Applications coding skills we can edit the macros and write programs to automate various kinds of works using VBA.

Aside Note: FYI – some of the Microsoft Office applications, such as Powerpoint and Outlook, do not have built in macro recorders. Therefore, writing VBA is mandatory for writing Powerpoint macros and automating Outlook.

The Visual Basic for applications editor will open up.

Let’s assume that we want to manually edit the Macro we have recorded in the previous step, so that Word not only set the Size, font and alignment of the paragraph, but also the color.

Setting the color of a section is achieved using the following VBA command:

[code] Selection.Font.Color [/code]

In our case, we’ll want to set it to a random blue, so we’ll append the following snippet to our Recorded macro:

[code] Selection.Font.Color = 16737792[/code]

Here’s how your VBA code should look like:

In the VBA Editor hit File and then Save.

Back to your document, run your Macro on a paragraph and observe the font color change.

Useful Word Macro example you can write

Since publishing this tutorial, many readers asked for more in depth examples of Word Macros. This list covers the most prevalent tasks you can automate using Visual Basic in Word. Here we go:

Create and Save New Document Sub CreateNewDoc() 'This small snippet first creates a new document, then it checks whether a document with the same name already exists before saving. Dim myDoc As New Document Dim filePath As String 'Modify your file path as needed filePath = "C:MyNewDoc.docx" Set myDoc = chúng tôi With myDoc If Dir(filePath) = "" Then .SaveAs2 (filePath) Else 'You have already an existing document MsgBox ("Please use a different file name") End If End With myDoc.Close SaveChanges:=wdPromptToSaveChanges End Sub Open a Word document with VBA Sub OpenDoc() 'This code checks whether your document exists and then opens it filePath = "C:MyNewDoc.docx" If Dir(filePath) = "" Then MsgBox ("file doesn't exist") Else chúng tôi (filePath) End If End Sub Closing one/all open documents Sub CloseDoc() 'This code closes a specific document filePath = "C:MyNewDoc.docx" Documents(filePath).Close SaveChanges:=wdPromptToSaveChanges End Sub Sub CloseAllDocs() 'This code closes all opened documents in your computer Documents.Close SaveChanges:=wdPromptToSaveChanges End Sub Saving Word as PDF

Here’s how to easily automate saving of Word documents as PDF files.

Sub SaveAsPdf() 'This code saves a word document in a PDF format FileName = Left(CStr(ActiveDocument.Name), Len(CStr(ActiveDocument.Name)) - 5) ActiveDocument.SaveAs2 FileName:="c:" + FileName + ".pdf", FileFormat:=wdFormatPDF End Sub Inserting header and footer

This code sets the header and footer of your Word document first page.

Sub InsertHeaderFooterFirstPage() Dim myDoc As Document Dim headerText As String Dim footerText As String Set myDoc = ActiveDocument 'Replace the header and footer text as needed headerText = "This document was written by you" footerText = "All rights reserved to you" With myDoc.Sections(1) 'We first ensure that we can set different header and footer texts .PageSetup.DifferentFirstPageHeaderFooter = True 'Setting the header and footer texts .Headers(wdHeaderFooterFirstPage).Range.Text = headerText .Footers(wdHeaderFooterFirstPage).Range.Text = footerText End With End Sub Additional Word Macro ideas

Here are a few more ideas which we’ll be posting in the upcoming future.

Find and Replace (Execute Method)

Insert a paragraph (before and after a selection)

Printing documents programatically

Working with tables

This concludes our tutorial for today. As you just saw, there is a lot to be done with the Word macro recorder and VBA Macros in Word. In case you are looking for more specific help that goes beyond the scope of this tutorial, kindly contact us via our contact form.

How To Create A Pivot Table In Excel 2010

Step-by-step instuctions for creating a pivot table in Excel 2010 or Excel 2007.

Preparing Your Pivot Table Data

Before you create a pivot table, make sure your data is organized correctly. There are instructions on the following pages, for setting up your source data in a table, organized into rows and columns.

Getting Started Use a Dynamic Data Source

In this example the source data contains information about property insurance policies. Each row has the details about one insurance policy, such as the region, state, construction type and the value of the insured property.

Creating a Simple Pivot Table

Watch this short video to see the steps for creating a pivot table, after the data has been prepred. Written instructions are below the video.

This tutorial has a quick overview of creating a pivot table. For a more detailed tutorial, go to the How to Plan and Set Up a Pivot Table page.

After your source data is prepared, you can create a pivot table. We’ll create a pivot table that shows the total insured value in each of the four regions where we sell insurance.

Select any cell in the source data table.

Adding Fields to the Pivot Table

An empty pivot table is created in your workbook, either on a new sheet, or the existing sheet that you selected. When you select a cell within the pivot table, a PivotTable Field List appears, at the right of the worksheet.

We want to see the total insured value in each of the four regions, so we’ll add the Region and InsuredValue fields to the pivot table.

In the PivotTable Field List, add a check mark to the Region field. The Region field is automatically added to the pivot table, in the Row Labels area.

Add a check mark to the InsuredValue field, and it will be automatically added to the Values area. You can now see the total insured value in each region.

Modifying the Pivot Table

After you’ve created a pivot table, you can add more fields, remove fields, or move the fields to a different location in the pivot table layout. We’ll remove the Region field, and add the Location field, to see the value of Rural policies compared to Urban.

The pivot table now shows the totals for Rural and Urban locations.

Test the Pivot Table

You can see a completed version of a pivot table based on the insurance policy data, with a few more fields added to the layout.

The pivot table demonstration is interactive, so you can use the Report Filters, at the top of the pivot table, to limit the amount of data that is being summarized.

Download the Sample File More Pivot Table Resources

Pivot Table Blog Pivot Table Article Index

Pivot Table Video Index

How to Plan and Set Up a Pivot Table

Cập nhật thông tin chi tiết về How To Create And Manage A Table Of Contents In Microsoft Word trên website Hoisinhvienqnam.edu.vn. Hy vọng nội dung bài viết sẽ đáp ứng được nhu cầu của bạn, chúng tôi sẽ thường xuyên cập nhật mới nội dung để bạn nhận được thông tin nhanh chóng và chính xác nhất. Chúc bạn một ngày tốt lành!