NamedRange.Justify Method (2007 System)

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

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

Syntax

'Declaration
Public Function Justify As Object
'Usage
Dim instance As NamedRange 
Dim returnValue As Object 

returnValue = instance.Justify()
public Object Justify()
public:
Object^ Justify()
public function Justify() : Object

Return Value

Type: System.Object

Remarks

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 DisplayAlerts property to false. After you set this property, text will always replace the contents in cells below the NamedRange control.

.NET Framework Security

See Also

Reference

NamedRange Class

NamedRange Members

Microsoft.Office.Tools.Excel Namespace