Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2022, 08:24 PM
Guessed's Avatar
Guessed Guessed is offline How Word table styles disappear from a document Windows 10 How Word table styles disappear from a document Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
  #2  
Old 02-11-2022, 06:35 AM
Ulodesk Ulodesk is offline How Word table styles disappear from a document Windows 10 How Word table styles disappear from a document Office 2016
Word 2013 Expert Cert
How Word table styles disappear from a document
 
Join Date: Sep 2009
Location: Virginia
Posts: 872
Ulodesk is on a distinguished road
Default How Word table style disappear

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.
Reply With Quote
  #3  
Old 02-18-2022, 06:37 AM
Ulodesk Ulodesk is offline How Word table styles disappear from a document Windows 10 How Word table styles disappear from a document Office 2016
Word 2013 Expert Cert
How Word table styles disappear from a document
 
Join Date: Sep 2009
Location: Virginia
Posts: 872
Ulodesk is on a distinguished road
Default Table styes

Quote:
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.
Andrew, I just got around to playing with the macro [routine?] you provided. The above paragraph is very useful indeed! I'll be sharing both with my DTP colleagues. Thanks again.
Reply With Quote
  #4  
Old 02-18-2022, 07:14 AM
Ulodesk Ulodesk is offline How Word table styles disappear from a document Windows 10 How Word table styles disappear from a document Office 2016
Word 2013 Expert Cert
How Word table styles disappear from a document
 
Join Date: Sep 2009
Location: Virginia
Posts: 872
Ulodesk is on a distinguished road
Default Table styes

Quote:
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.
Andrew, I just got around to playing with the macro [routine?] you provided. The above paragraph is very useful indeed! I'll be sharing both with my DTP colleagues. Thanks again.
Reply With Quote
Reply



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

Other Forums: Access Forums

All times are GMT -7. The time now is 06:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft