Copy Range in a Worksheet with Paste Options – Aspose.Cells Cloud API

This REST API copies a range in a worksheet of an Excel workbook. For related operations, see the Get Range and Update Range documentation.

Prerequisites: To use this endpoint you must have a valid OAuth 2.0 / JWT token and ensure your API version matches the request URL.

REST API

POST https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/ranges

Request parameters

Parameter Name Type Location Description
name string path The name of the workbook.
sheetName string path The name of the worksheet.
rangeOperate string body The operation to perform: copydata, copystyle, copyto, or copyvalue.
folder string query The folder that contains the workbook.
storageName string query The name of the storage service.

Notes: The rangeOperate field determines what is copied. Use copydata to copy only cell values, copystyle for formatting, copyto for both data and style, and copyvalue to copy values without formulas. The API supports ranges up to 1 million cells; larger ranges may result in a timeout.

The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to make calls to the Cloud API with cURL.

You can download a sample workbook to test the copy operation here.

Cloud SDK Family

Using an SDK is the best way to speed up development. An SDK handles low‑level details so you can focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.

The following code examples demonstrate how to call Aspose.Cells web services using various SDKs: