Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 10-04-2021, 11:25 PM
lis lis is offline Text does not appear in defined style (font size) Windows 10 Text does not appear in defined style (font size) Office 2016
Novice
Text does not appear in defined style (font size)
 
Join Date: Sep 2021
Posts: 11
lis is on a distinguished road
Default


Thank you for sending the file again, but sadly it is still Times New Roman, font size 10 for me. Might it be a problem that you are using Office 2019 while I have version 2016?
Reply With Quote
  #17  
Old 10-04-2021, 11:26 PM
Guessed's Avatar
Guessed Guessed is offline Text does not appear in defined style (font size) Windows 10 Text does not appear in defined style (font size) Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
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

Have you tried assigning a different table style yet?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #18  
Old 10-04-2021, 11:37 PM
lis lis is offline Text does not appear in defined style (font size) Windows 10 Text does not appear in defined style (font size) Office 2016
Novice
Text does not appear in defined style (font size)
 
Join Date: Sep 2021
Posts: 11
lis is on a distinguished road
Default

Or could it be that I need to make any changes to this normal.dotm file?
Reply With Quote
  #19  
Old 10-04-2021, 11:40 PM
lis lis is offline Text does not appear in defined style (font size) Windows 10 Text does not appear in defined style (font size) Office 2016
Novice
Text does not appear in defined style (font size)
 
Join Date: Sep 2021
Posts: 11
lis is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Have you tried assigning a different table style yet?
Yes, I tried using a List table. At least here the font and font size were right, but the text appeared bold instead of regular. Plus it would be really much work to modify all tables in my documents with a completely new table style.
Reply With Quote
  #20  
Old 10-05-2021, 01:18 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is online now Text does not appear in defined style (font size) Windows 10 Text does not appear in defined style (font size) Office 2019
Moderator
 
Join Date: Aug 2011
Posts: 3,872
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Quote:
Originally Posted by lis View Post
Thank you for sending the file again, but sadly it is still Times New Roman, font size 10 for me. Might it be a problem that you are using Office 2019 while I have version 2016?
This is discouraging. I don't know why the display/formatting changes on your machine.

The fact that you are on Word 2016 while I am on Word 2019 shouldn't make a difference in this respect.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #21  
Old 10-05-2021, 02:48 AM
Guessed's Avatar
Guessed Guessed is offline Text does not appear in defined style (font size) Windows 10 Text does not appear in defined style (font size) Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
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

I recommend you learn a bit about table styles. They can be very complex but it is necessary because, as you have discovered, the table style can override the styles applied to the text in the table. The bolding may not apply to the entire table, often it is because you have a first row or first column highlight turned on. This macro can be used to apply styling to all selected tables
Code:
Sub TableStyler()
  Dim aTbl As Table
  For Each aTbl In Selection.Tables
    aTbl.Style = "My Table Style"
    aTbl.ApplyStyleFirstColumn = False
    aTbl.ApplyStyleRowBands = False
    aTbl.Range.Style = "Table Text"        'paragraph style for all of table
    aTbl.Rows(1).Range.Style = "Table Heading"   'paragraph style for first row
    aTbl.PreferredWidthType = wdPreferredWidthAuto
    aTbl.PreferredWidth = 100
  Next aTbl
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia

Last edited by Guessed; 10-05-2021 at 02:49 PM.
Reply With Quote
  #22  
Old 10-05-2021, 03:02 AM
lis lis is offline Text does not appear in defined style (font size) Windows 10 Text does not appear in defined style (font size) Office 2016
Novice
Text does not appear in defined style (font size)
 
Join Date: Sep 2021
Posts: 11
lis is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
I recommend you learn a bit about table styles. They can be very complex but it is necessary because, as you have discovered, the table style can override the styles applied to the text in the table. The bolding may not apply to the entire table, often it is because you have a first row or first column highlight turned on. This macro can be used to apply styling to all selected tables
Code:
Sub TableStyler()
  Dim aTbl As Table
  For Each aTbl In Selection.Tables
    aTbl.Style = "My Table Style"
    aTbl.ApplyStyleFirstColumn = False
    aTbl.ApplyStyleRowBands = False
    aTbl.Range.Style = "Table Text"        'paragraph style for all of table
    aTbl.Rows(1).Range.Style = "Table Heading"   'paragraph style for first row
    aTbl.PreferredWidthType = wdPreferredWidthAuto
    aTbl.PreferredWidth = 100
  Next aTbl
End Sub

That sounds like a good option with the macro. When I try to run the macro though, it leads to the run time error "Cannot access individual rows in this collection because the table has vertically merged cells."

I fear in the end I will just change the font size by hand to 11

But thank you both very much for your help.
Reply With Quote
  #23  
Old 10-05-2021, 02:52 PM
Guessed's Avatar
Guessed Guessed is offline Text does not appear in defined style (font size) Windows 10 Text does not appear in defined style (font size) Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
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

If you encounter problems with the macro, you can disable the lines that failed because those were optional extras that I included in the code I posted. I've colour-coded it now. The Red line will fail if you have merged cells in the top row. The Orange lines are not necessary and can be disabled if you only want to apply the table style.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text does not appear in defined style (font size) Balloon Text font and size macro Artimae Word VBA 5 11-16-2017 05:20 PM
When changing table style in Word 2010, font size seems to change but doesn't show in new tables heartsoulliving Word 1 12-07-2016 05:17 PM
Text does not appear in defined style (font size) Font size of track changes balloon text Oryctolagus Word 1 11-13-2013 09:27 AM
Quick Style Arial font size 11 is 12 Hornet Word 1 05-17-2013 12:09 PM
Text does not appear in defined style (font size) Change font style and size in multiple documents fitkhan Word 1 04-27-2011 09:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:38 PM.


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