CopyOptions

CopyOptions class

Represents the copy options.

public class CopyOptions

Constructors

Name Description
CopyOptions() CopyOptions constructor.

Properties

Name Description
ColumnCharacterWidth { get; set; } Indicates whether copying column width in unit of characters.
CopyInvalidFormulasAsValues { get; set; } If the formula is not valid for the dest destination, only copy values.
CopyNames { get; set; } Indicates whether copying the names.
ExtendToAdjacentRange { get; set; } Indicates whether extend ranges when copying the range to adjacent range.
KeepMacros { get; set; } Indicates whether keeping macros;
ReferToDestinationSheet { get; set; } 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.
ReferToSheetWithSameName { get; set; } 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.

See Also