Justify Method
Collapse the table of content
Expand the table of content

NamedRange.Justify Method ()


Rearranges the text in the NamedRange control so that it fills the range evenly.

Namespace:   Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

object Justify()

Return Value

Type: System.Object

If the range is not large enough, Microsoft Office Excel displays a message telling you that text will extend below the range. If you click the OK button, justified text will replace the contents in cells that extend beyond the selected range. To prevent this message from appearing, set the P:Microsoft.Office.Interop.Excel._Application.DisplayAlerts property to false. After you set this property, text will always replace the contents in cells below the NamedRange control.

Return to top
© 2015 Microsoft