Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2023, 10:01 PM
Charles Kenyon Charles Kenyon is offline Put a vertical line to the left of the numbering in a Paragraph style for a heading Windows 11 Put a vertical line to the left of the numbering in a Paragraph style for a heading Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,533
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You could create an AutoText or AutoCorrect entry and use that to repeat the formatting.
You could set a paragraph style with a left border. Set a distance for a border.
Reply With Quote
  #2  
Old 09-20-2023, 06:32 AM
jthomas666 jthomas666 is offline Put a vertical line to the left of the numbering in a Paragraph style for a heading Windows 10 Put a vertical line to the left of the numbering in a Paragraph style for a heading Office 2016
Competent Performer
 
Join Date: Jun 2016
Location: Warner Robins, GA
Posts: 204
jthomas666 will become famous soon enough
Default

Quote:
Originally Posted by Charles Kenyon View Post
You could create an AutoText or AutoCorrect entry and use that to repeat the formatting.
You could set a paragraph style with a left border. Set a distance for a border.
I'd go with the paragraph style. I've used that method before and it works well.
Reply With Quote
  #3  
Old 09-20-2023, 04:25 PM
JacobHutson JacobHutson is offline Put a vertical line to the left of the numbering in a Paragraph style for a heading Windows 10 Put a vertical line to the left of the numbering in a Paragraph style for a heading Office 2021
Novice
Put a vertical line to the left of the numbering in a Paragraph style for a heading
 
Join Date: Sep 2023
Posts: 3
JacobHutson is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
You could create an AutoText or AutoCorrect entry and use that to repeat the formatting.
You could set a paragraph style with a left border. Set a distance for a border.
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.
Reply With Quote
  #4  
Old 09-21-2023, 01:25 AM
Italophile Italophile is offline Put a vertical line to the left of the numbering in a Paragraph style for a heading Windows 11 Put a vertical line to the left of the numbering in a Paragraph style for a heading Office 2021
Expert
 
Join Date: Mar 2022
Posts: 554
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, 21 views)
File Type: png Screenshot 2023-09-21 091653.png (46.6 KB, 19 views)
File Type: png Screenshot 2023-09-21 091926.png (15.9 KB, 20 views)
Reply With Quote
Reply

Tags
formatting, leader, vertical bar



Similar Threads
Thread Thread Starter Forum Replies Last Post
line numbering on left and right of page? tommydog Word 1 01-13-2021 08:20 AM
Put a vertical line to the left of the numbering in a Paragraph style for a heading applying heading style within paragraph using macro cheech1981 Word 8 08-23-2017 03:07 PM
How remove short vertical line in left margin of text?from NightWriter Word 4 02-29-2016 05:20 PM
Put a vertical line to the left of the numbering in a Paragraph style for a heading Using heading style level in a paragraph kam Word 7 03-24-2014 02:58 PM
Put a vertical line to the left of the numbering in a Paragraph style for a heading How to get rid of the vertical line at the left side? pstein Word 1 03-27-2012 03:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:14 PM.


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