![]() |
|
|
|
#1
|
||||
|
||||
|
Table styles are a great feature but they do have some weird implementation headaches. For instance, using Normal paragraphs inside a table is often a bad idea as the table style settings can override the paragraph style settings when Normal is the paragraph style. This is less of a problem if you use other paragraph styles in your tables.
The appearance of table style icons varies according to the optional table style settings on that table. For instance, if your table has 'Header Row' turned off, the icons for the table styles won't display the shaded first row. Turning this back on changes the table style icons. The most common of these optional settings are in the first group of the Table Tools>Design ribbon tab. I always use a macro to format tables which applies a table style + sets the preferred table style options and sets the content in the table to standardised paragraph styles. You can apply this to as many tables as you have selected if you use a loop like this Code:
Dim aTable as Table
For each aTable in Selection.Tables
With aTable
.Style = "Table Grid" 'the table style
.Rows.LeftIndent = .Style.Table.LeftIndent 'enforce the table indent of the table style
.ApplyStyleHeadingRows = True
.ApplyStyleFirstColumn = False
.ApplyStyleRowBands = False
.Range.Style = "Table Text" 'the paragraph style for text in the table
End With
Next aTable
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#2
|
|||
|
|||
|
Thank you, Andrew.
Just to note, since you mentioned it, I have had the problem of table styles overriding custom text formats (styles) as well. The one that comes to mind, and perhpas the only one, is font size. If someone has pasted in a table with a spec of, say 11-pt font, and then formatted it locally to look like my custom table, including applying the custom table text font, my attempt to clear the font format to make it 10 pt holds for about 1/4 second before reverting to 11. This had me quite perplexed the first time I saw it. |
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
Quote:
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does a new set of styles in a template overwrite or remove the existing set of styles in a document? | dianahbr | Word | 6 | 03-27-2018 11:12 PM |
| quotation marks disappear when printing word document (Word2010) | amira | Word | 2 | 11-13-2016 03:27 AM |
| Single step Word Styles from Source Document through entire Destination document? | xbliss | Word | 6 | 08-27-2016 09:36 PM |
| Apply styles in word table | 1van | Word VBA | 2 | 11-17-2015 11:05 AM |
| Pivot Table choices disappear | caz46 | Excel | 0 | 03-31-2015 01:41 AM |