---
title: "WebWorksheets.AddCopy"
url: "https://reference.aspose.com/cells/net/aspose.cells.gridweb.data/webworksheets/addcopy/"
product: "Aspose.Cells for .NET API Reference"
description: "WebWorksheets method. Adds a worksheet to the collection and copies data from an existed worksheet"
---

## AddCopy(int) {#addcopy_1}

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

```csharp
public int AddCopy(int sheetIndex)
```

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

### Return Value

Worksheet object index.

### See Also

* class [WebWorksheets](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)

---

## AddCopy(WebWorksheet) {#addcopy}

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

```csharp
public int AddCopy(WebWorksheet srcSheet)
```

| Parameter | Type | Description |
| --- | --- | --- |
| srcSheet | WebWorksheet | Source of WebWorksheet. |

### Return Value

[`WebWorksheet`](../../webworksheet/) object index.

### See Also

* class [WebWorksheet](../../webworksheet/)
* class [WebWorksheets](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)

---

## AddCopy(string) {#addcopy_2}

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

```csharp
public int AddCopy(string sheetName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sheetName | String | Name of source worksheet. |

### Return Value

[`WebWorksheet`](../../webworksheet/) object index.

### See Also

* class [WebWorksheets](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)


