add_copy method
Contents
[
Hide
]add_copy(self, sheet_name)
Adds a worksheet to the collection and copies data from an existed worksheet.
Returns
Worksheet object index.
def add_copy(self, sheet_name):
    ...
| Parameter | Type | Description | 
|---|---|---|
| sheet_name | System.String | Name of source worksheet. | 
Exceptions
| Exception | Description | 
|---|---|
| CellsException | Specifies an invalid worksheet name. | 
add_copy(self, sheet_index)
Adds a worksheet to the collection and copies data from an existed worksheet.
Returns
Worksheet object index.
def add_copy(self, sheet_index):
    ...
| Parameter | Type | Description | 
|---|---|---|
| sheet_index | int | Index of source worksheet. | 
add_copy(self, source, dest_sheet_names)
Copy a group of worksheets.
def add_copy(self, source, dest_sheet_names):
    ...
| Parameter | Type | Description | 
|---|---|---|
| source | list | The source worksheets. | 
| dest_sheet_names | list | The names of the copied sheets. | 
See Also
- module aspose.cells
- class CellsException
- class Worksheet
- class WorksheetCollection