new CopyOptions()

CopyOptions constructor.

Methods

getColumnCharacterWidth()

Indicates whether copying column width in unit of characters.

getCopyInvalidFormulasAsValues()

If the formula is not valid for the dest destination, only copy values.

getCopyNames()

Indicates whether copying the names.

getExtendToAdjacentRange()

Indicates whether extend ranges when copying the range to adjacent range. If it's true, only extends the range of the hyperlink,not adding a new hyperlink when copying hyperlinks to adjacent rows.

getKeepMacros()

Indicates whether keeping macros; Only for copying workbook.

getReferToDestinationSheet()

When copying the range in the same file and the chart refers to the source sheet, False means the copied chart's data source will not be changed. True means the copied chart's data source refers to the destination sheet. The default value is false, it works as MS Excel.

getReferToSheetWithSameName()

When copying a worksheet to another workbook and the worksheet contains the formulas which refer to other worksheets in MS Excel, the copied formulas should refer to source workbook. But sometimes we have copied other worksheets and we hope the copied formulas refer to other worksheets with the name in the same workbook, please set this property as true. The default value is true.

setColumnCharacterWidth()

Indicates whether copying column width in unit of characters.

setCopyInvalidFormulasAsValues()

If the formula is not valid for the dest destination, only copy values.

setCopyNames()

Indicates whether copying the names.

setExtendToAdjacentRange()

Indicates whether extend ranges when copying the range to adjacent range. If it's true, only extends the range of the hyperlink,not adding a new hyperlink when copying hyperlinks to adjacent rows.

setKeepMacros()

Indicates whether keeping macros; Only for copying workbook.

setReferToDestinationSheet()

When copying the range in the same file and the chart refers to the source sheet, False means the copied chart's data source will not be changed. True means the copied chart's data source refers to the destination sheet. The default value is false, it works as MS Excel.

setReferToSheetWithSameName()

When copying a worksheet to another workbook and the worksheet contains the formulas which refer to other worksheets in MS Excel, the copied formulas should refer to source workbook. But sometimes we have copied other worksheets and we hope the copied formulas refer to other worksheets with the name in the same workbook, please set this property as true. The default value is true.