## WorksheetCollection::AddCopy(const U16String\&) method


Adds a worksheet to the collection and copies data from an existed worksheet.

```cpp
int32_t Aspose::Cells::WorksheetCollection::AddCopy(const U16String &sheetName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| sheetName | const U16String\& | [Name](../../name/) of source worksheet. |

## ReturnValue

[Worksheet](../../worksheet/) object index.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [WorksheetCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## WorksheetCollection::AddCopy(const char16_t*) method


Adds a worksheet to the collection and copies data from an existed worksheet.

```cpp
int32_t Aspose::Cells::WorksheetCollection::AddCopy(const char16_t *sheetName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| sheetName | const char16_t* | [Name](../../name/) of source worksheet. |

## ReturnValue

[Worksheet](../../worksheet/) object index.

## See Also

* Class [Vector](../../vector/)
* Class [WorksheetCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## WorksheetCollection::AddCopy(int32_t) method


Adds a worksheet to the collection and copies data from an existed worksheet.

```cpp
int32_t Aspose::Cells::WorksheetCollection::AddCopy(int32_t sheetIndex)
```


| Parameter | Type | Description |
| --- | --- | --- |
| sheetIndex | int32_t | Index of source worksheet. |

## ReturnValue

[Worksheet](../../worksheet/) object index.

## See Also

* Class [Vector](../../vector/)
* Class [WorksheetCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## WorksheetCollection::AddCopy(const Vector \<Worksheet\>\&, const Vector \<U16String\>\&) method


Copy a group of worksheets.

```cpp
void Aspose::Cells::WorksheetCollection::AddCopy(const Vector<Worksheet> &source, const Vector<U16String> &destSheetNames)
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const Vector \<Worksheet\>\& | The source worksheets. |
| destSheetNames | const Vector \<U16String\>\& | The names of the copied sheets. |

## See Also

* Class [Vector](../../vector/)
* Class [Worksheet](../../worksheet/)
* Class [U16String](../../u16string/)
* Class [WorksheetCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
