InsertIndent Method

Applies To

Range object.

Description

Adds an indent to the specified range.

Syntax

expression.InsertIndent(InsertAmount)

expression Required. An expression that returns a Range object.

InsertAmount Required Long. The amount to be added to the current indent.

Remarks

Using this method to set the indent level to a number less than 0 (zero) or greater than 15 causes an error.

Use the IndentLevel property to return the indent level for a range.

See Also

IndentLevel property.

Example

This example decreases the indent level in cell A10.

With Range("A10")
    .InsertIndent -1
End With