Insert Columns

Inserts new column(s) at the specified position.Inserts columns into the named sheet of the Excel file at the places specified by column name. The columns to the right take the name of the column after them.

Example: If an insert is made at the column named "C", the previous "C" column takes the name "D" and the "D" column takes the name "E". Multiple columns can be inserted.


⬅️INPUT

Parameter

Type

Required

Description

FilePath

String

✅ Yes

Excel file path

Data

Byte[]

✅ Yes

Excel binary data

SheetName

String

❌ No

Sheet name

Column

String

❌ No

Column(s) to insert


➡️OUTPUT

Parameter

Type

Description

IsInsertColumnsSuccessful

Boolean

Whether the operation succeeded

InsertColumnsMessage

String

Result message

InsertColumnsResult

Byte[]

Updated Excel file


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Specifies whether an exception is thrown when the operation fails. The default value is "No".