Skip to content

Latest commit

 

History

History
38 lines (17 loc) · 959 Bytes

e612bbc8-3942-3349-f157-c0459805794a.md

File metadata and controls

38 lines (17 loc) · 959 Bytes

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

expression . Insert( Shift , CopyOrigin )

expression A variable that represents a Range object.

Parameters

Name Required/Optional Data Type Description
Shift Optional 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 Optional Variant The copy origin.

Return Value

Variant

See also

Concepts

Range Object

Other resources

Range Object Members