Thread: [Solved] Word line-breaking algorithm
View Single Post
 
Old 01-26-2025, 02:29 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,382
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Well, yes, you could do that quite simply with a macro like:
Code:
Sub Demo()
ActiveDocument.Range.ParagraphFormat.Alignment = wdAlignParagraphJustifyLow
End Sub
or you could apply it to selected paragraphs with a macro like:
Code:
Sub Demo()
Selection.Range.ParagraphFormat.Alignment = wdAlignParagraphJustifyHi
End Sub
As I said, though, I haven't tried the JustifyHi/Low/Med options, so I can't tell you what they do.

For PC macro installation & usage instructions, see: Installing Macros
For Mac macro installation & usage instructions, see: https://wordmvp.com/Mac/InstallMacro.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote