View Single Post
 
Old 09-21-2023, 01:25 AM
Italophile Italophile is online now Windows 11 Office 2021
Expert
 
Join Date: Mar 2022
Posts: 427
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Quote:
Originally Posted by JacobHutson View Post
Hi Charles..
already been there with the paragraph border , and this is pretty close unfortunately the border size seems to max out at 6pt and i need 18pt to match my branding restrictions.

The arbitrary limits in word can get quite frustrating.
The limits only apply to the dialog and can be overcome by editing the xml for the style definition.

NOTE: If you later make edits to the style you must stay out of the borders and shading
dialog or you will overwrite your edit.

First, apply a 6pt border in the correct colour and at the correct distance. Save the template/document.
The simplest method from this point is to use 7-zip or NanaZip to open the document archive so that you can edit the files.
Open the styles.xml from the word folder for editing. I use Visual Code but a text editor will also work.
You'll need to find the second instance of "heading 1" to get the style definition. See screenshot.
The part of the definition you need is:
Code:
<w:pBdr>
    <w:left w:val="single" w:sz="48" w:space="18" w:color="00759E" w:themeColor="accent1"/>
</w:pBdr>
and you need to edit the parameter "w:sz". You will note that the value of this is the border size in points multiplied by 8. So change the value of 48 to 144, save the file and close the editor. If you are using 7-zip or NanaZip you will be asked if you want to update the archive with the changes.
As you will see in the final screenshot you now have an 18pt border 18pts from the paragraph.
Attached Images
File Type: png Screenshot 2023-09-21 091429.png (16.2 KB, 19 views)
File Type: png Screenshot 2023-09-21 091653.png (46.6 KB, 17 views)
File Type: png Screenshot 2023-09-21 091926.png (15.9 KB, 18 views)
Reply With Quote