Cập nhật thông tin chi tiết về How To Hide Table Styles On The Table Tools Design Tab In Word (For Developers) mới nhất trên website Trucbachconcert.com. 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.
How to hide table styles on the Table Tools Design tab in Word (for developers)
The problem: does anyone need 99 ways to format a table?
The Design tab includes the Table Styles group. This gives you, out of the box, 99 table styles from which to choose.
Having applied one of the 99 styles, the user can then choose whether or not to show banded columns, banded rows, header or total rows and so on.
In a corporate environment, the communications people would tear their hair out if users formatted tables in 99 different ways. A corporate environment is likely to have 2 or 3 ‘approved’ ways to format a table.
The solution: hide most, if not all, of the built-in table styles
Well-constructed templates for corporate use are likely to have 2 or 3 custom table styles that fit the corporate branding. Or, the in-house rules may be that 2 or 3 of the built-in styles are to be used, but the rest are off limits.
There is no way in the user interface to hide the built-in table styles.
But you can do it in code. Something like this will do the trick:
Sub HideATableStyle() With ActiveDocument.Styles(Word.wdStyleTableLightShading) .Visibility = True ' Yes, True. .UnhideWhenUsed = False End With End SubIf you’re creating a template for corporate use, it may be appropriate to hide most of the built-in table styles in the template. Leave the approved custom or built-in table styles visible. Users can then easily apply the corporate-approved table styles when working on documents based on that template.
Sub HideATableStyleButMakeItVisibleWhenUsed() With ActiveDocument.Styles(Word.wdStyleTableLightShading) .Visibility = True ' Yes, True. .UnhideWhenUsed = True End With End SubHow To Format Microsoft Word Tables Using Table Styles
Apply and Modify Table Styles in Word Documents
Applies to: Microsoft ® Word ® 2013, 2016, 2019 or 365 (Windows)
You can apply table styles to your Word tables to format them quickly and consistently. Word is shipped with several built-in table styles or you can create your own. You can edit table styles by modifying borders, shading, character formatting, paragraph formatting and table properties. If your document includes multiple tables, table styles can save a lot of time.
Note: Buttons and Ribbon tabs may display in a different way (with or without text) depending on your version of Word, the size of your screen and your Control Panel settings. For Word 365 users, Ribbon tabs may appear with different names. For example, the Table Tools Design tab may appear as Table Design.
Recommended article: How to Keep a Microsoft Word Table Together on One Page
Table styles and themes
Every Word document uses a document theme which includes a font theme and color theme. The colors used in table styles are based on the color theme.
You can select document themes, color themes and font themes using the Themes, Colors or Fonts drop-down menus on the Design tab in the Ribbon:
Turning gridlines on
When you are working with tables, it’s a good idea to turn gridlines on. Borders, which are a format, will print. Gridlines do not print.
To turn on gridlines:
If your Word document contains multiple tables that you want to format in a consistent way, it’s best to use table styles rather than applying manual or direct formatting to each table.
To apply a table style to a table:
Hover over the various table styles. The table formatting will change as you move over different table styles in the gallery.
Below is the Table Styles gallery (the current theme is the Office theme):
Selecting Table Style Options
Once you have selected a table style, you can select different Table Style Options (which are affected by the formats in the table style).
To select Table Style Options:
In Table Style Options, check or uncheck Header Row. If this option is checked, the header row will be formatted differently from the body rows.
In Table Style Options, check or uncheck Total Row. If this option is checked, the last row will be formatted differently from the body rows.
In Table Style Options, check or uncheck Banded Rows or Banded Columns for alternate row or column shading.
In Table Style Options, check First Column or Last Column if you want the first or last column formatted differently from the other columns.
You can modify a table style in a Word document and all tables using that table style will change.
To modify a table style:
From the Apply Formatting to drop-down menu, select the element that you want to modify (such as Header row).
Select the desired formatting such as font, font size, font color, fill and border.
From the Apply Formatting to drop-down menu, select the next element that you want to modify.
Select the desired formatting such as font, font size, font color, fill and border.
Repeat for other elements.
Select Only in this document or New documents based on this template. If you select Only in this document, the modified style will only be available for the current document. If you select New documents based on this template, then the table style will be modified for future documents based on the current template (usually the Normal template).
Below is the Modify Style dialog box:
You can also modify Table Properties in a table style. Table properties include table alignment, row settings and cell margins.
To modify Table Properties in a table style:
Select any other formatting options you want to apply to the entire table.
Select Only in this document or New documents based on this template.
Below is the Table Properties dialog box with the Table tab selected:
You can also create a new or custom table style.
To create a custom table style:
Enter a name for the new table in the Name box.
Select the desired formatting.
Select Only in this document or New documents based on this template.
New Table Style appears at the bottom of the Table Styles gallery:
Clearing a table style
To clear a table style and remove formatting:
Clear appears at the bottom of the Table Styles gallery:
You can also set a default table style for new tables in the current document or all new documents.
To set a default table style:
Select This document only or All documents based on the chúng tôi template (the default template in Word is the Normal template).
If you are working with documents with multiple tables, formatting with table styles can ensure that your tables are formatted consistently and save a lot of time.
Did you find this article helpful? If you would like to receive new articles, join our email list.
More resources
10 Microsoft Word Tips, Tricks and Shortcuts for Selecting in Tables Microsoft Word Tricks to Keep Text Together (Words, Lines or Paragraphs) 14 Shortcuts to Quickly Select Text in Microsoft Word
Related courses
Styles For Individual Table Cells In Word
There’s a limitation in Word’s Table Styles; no individual cell styles within a Word table We’ll explain the problem and several options to workaround it.
Along the way it’s a chance to dig into some interesting parts of Word and Office and make them do things that might not have occurred to you.
There’s a need to apply a named style to individual table cells, for example styles for the four special cells in this table (maybe for high, low or special values).
Change cell look
Change any Word table cell formatting, just select the cell (not just the text) then go to Table Design and make the changes you like, such as shading and border.
We’d like to have a style called say ‘High Score’ that can change the look of an individually selected cell from the styles list.
Ideally cells, rows and columns should all have individual styles to override the presets within the Table Style.
What workarounds are available within the features Microsoft has given us?
Format Painter
If all you need is consistency of formatting between cells you might think Format Painter is the solution. Format Painter copies the look of a selection and applies that formatting to another selection.
It’s a great theory and, in our opinion, should work. It doesn’t.
We tried various Word’s and none of them would copy cell formatting (Ctrl + Shift + C) to another cell (Ctrl + Shift + V).
The formatting of a selection within a cell can be copied but not the entire cells formatting.
Paragraph Styles
The next possibility is paragraph styles. Within each cell is text with style formatting (paragraph, character or linked), just like all text in Word. See: What is a Style in Word, Excel or Outlook?
So much for that idea …
We made a style, cunningly called ‘Special Cell’, with border shading for the background. You can see the result here.
Changing one cell margins might not work because the top/bottom margins need to be the same for the entire row (give it a try, if you like).
Despite that limitation, maybe paragraph styles are enough; a design compromise you can live with.
Excel
If you need individual cell formatting and do it regularly, the best solution is to use Excel.
Excel Styles work with individual cells, unlike Word.
Paste or link a selection or table from Excel into Word. See Putting Excel into Word.
Start by copying your existing Word table into Excel or make a table first in Excel.
Custom Cell styles appear in the Style Gallery ready to apply to as many cells as you like.
Conditional Formatting
Excel also has conditional formatting so you can automatically colorize cells according to their value.
That means your Excel table could automatically highlight high, low or out of range values.
Fake ‘styles’ for cells
Word doesn’t have separate cell styles but you can fake it with a little VBA code to apply consistent cell formatting. See Make styles for individual table cells in Word
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 🙂
Bạn đang xem bài viết How To Hide Table Styles On The Table Tools Design Tab In Word (For Developers) trên website Trucbachconcert.com. 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. Chúc bạn một ngày tốt lành!