Range.Justify method (Excel)
Rearranges the text in a range so that it fills the range evenly.
expression A variable that represents a Range object.
If the range isn't large enough, Microsoft Excel displays a message telling you that text will extend below the range. If you choose the OK button, justified text replaces the contents in cells that extend beyond the selected range. To prevent this message from appearing, set the DisplayAlerts property to False. After you set this property, text will always replace the contents in cells below the range.
This example justifies the text in cell A1 on Sheet1.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.