#16
|
|||
|
|||
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? |
#17
|
||||
|
||||
Have you tried assigning a different table style yet?
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#18
|
|||
|
|||
Or could it be that I need to make any changes to this normal.dotm file?
|
#19
|
|||
|
|||
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.
|
#20
|
||||
|
||||
Quote:
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 |
#21
|
||||
|
||||
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. |
#22
|
|||
|
|||
Quote:
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. |
#23
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
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 |
Change font style and size in multiple documents | fitkhan | Word | 1 | 04-27-2011 09:49 PM |