> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/integrations/gsuite/activities/sheets/range/write-range.md).

# Write Range

Write the values from the data table into the specified range of the google sheet.

{% hint style="info" %}
This activity can only be used after the [`Create GSuite Connection Activity`](/integrations/gsuite/activities/create-gsuite-connection-activity.md).
{% endhint %}

### Input

* **Credential**: [`Object Variable`](/getting-started/rpa-studio/variables.md#object)![](/files/-M9AFsu8XcMrXQJ8dJer)\
  A variable name that references the user credential to access the resources.
* **SpreadSheet Id**: [`String Argument`](/getting-started/rpa-studio/arguments.md)![](/files/-M9AFsu8XcMrXQJ8dJer)\
  The Id of the spreadsheet in which the data is to be written.
* **Sheet Name**: [`String Argument`](/getting-started/rpa-studio/arguments.md)![](/files/-M9AFsu8XcMrXQJ8dJer)\
  The name of the sheet in which the data is to be written.
* **Range**: [`String Argument`](/getting-started/rpa-studio/arguments.md)![](/files/-M9AFsu8XcMrXQJ8dJer)\
  The range of the sheet to write.
* **Include Headers**:
  * `True` - column headers from the specified data table will be written.
  * `False` - column headers from the specified data table will not be written.
* **Data Table**: [`DataTable Variable`](/getting-started/rpa-studio/variables.md#datatable)![](/files/CWI2OUrnPqNZYUOVcbmr)\
  The data table to be written.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.visualyze.ai/integrations/gsuite/activities/sheets/range/write-range.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
