다음을 통해 공유


Range.Insert Method (Excel)

Inserts a cell or a range of cells into the worksheet or macro sheet and shifts other cells away to make space.

Syntax

.Insert(Shift, CopyOrigin)

A variable that represents a Range object.

Parameters

Name

Required/Optional

Data Type

Description

Shift

선택

Variant

Specifies which way to shift the cells. Can be one of the following XlInsertShiftDirection constants: xlShiftToRight or xlShiftDown. If this argument is omitted, Microsoft Excel decides based on the shape of the range.

CopyOrigin

선택

Variant

The copy origin.

Return Value

Variant

참고 항목

개념

Range Object Members

Range Object