다음을 통해 공유


Range.InsertIndent Method (Excel)

Adds an indent to the specified range.

Syntax

.InsertIndent(InsertAmount)

A variable that represents a Range object.

Parameters

Name

Required/Optional

Data Type

Description

InsertAmount

필수

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.

Example

This example decreases the indent level in cell A10.

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

참고 항목

개념

Range Object

Range Object Members