> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/productivity/microsoft-excel.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Microsoft Excel

Microsoft Excel is Microsoft's spreadsheet app. Work with workbooks in OneDrive or SharePoint: add worksheets, tables, rows, charts and named items.

![Microsoft Excel logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-af1ffd2f41111311be3d50c238354d08a9898039%2Fmicrosoft-excel.png?alt=media)

|                    |                                                                              |
| ------------------ | ---------------------------------------------------------------------------- |
| **Category**       | [Productivity](https://docs.fastn.ai/connectors/catalog/productivity.md)     |
| **Website**        | [graph.microsoft.com](https://graph.microsoft.com)                           |
| **Authentication** | OAuth 2.0                                                                    |
| **Slug**           | `microsoftExcel`                                                             |
| **On fastn.ai**    | [Embed Microsoft Excel in your product](https://fastn.ai/integrations/excel) |

## Setup

Your customers sign in to Microsoft Excel through Fastn's own OAuth app, so nothing needs setting up first. To show your own app on the consent screen instead, add your OAuth app on the connector's **Auth** tab under **Manage providers**.

## Connect in Fastn

Your customers connect Microsoft Excel from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Microsoft Excel**.
2. Select **Connect** on the Microsoft Excel card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Keep the **Default** auth provider, or choose your own OAuth app if you added one. Pick the **Scopes** you need, select **Authorize**, then sign in to Microsoft Excel and approve access in the window that opens.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-0e2bbdd7109cec207402cf6883484b8525b7fbf5%2Fconnect-oauth.png?alt=media" alt="The Connect Salesforce dialog for OAuth 2.0 with the Default auth provider, an optional account name, the Scopes selector and an Authorize button"><figcaption><p>A connect form for OAuth 2.0. Salesforce is shown here.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Microsoft Excel's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Chart</td><td><code>addChart</code></td><td>Creates a chart on a worksheet from a source data range, for example a stacked column chart over "A1:B10".</td></tr><tr><td>Add Named Item</td><td><code>addNamedItem</code></td><td>Creates a workbook-scoped named item that points at a range or formula, for example "=Sheet1!$F$15:$N$27".</td></tr><tr><td>Add Named Item With Local Formula</td><td><code>addNamedItemFormulaLocal</code></td><td>Creates a workbook-scoped named item from a formula written in the user's own language and number-formatting locale, for example "=SUM(Sheet2!$A$1+Sheet2!$A$2)".</td></tr><tr><td>Add Table</td><td><code>addTable</code></td><td>Creates an Excel table over a range of cells. Because the table is created at workbook scope, prefix the address with the sheet name, for example "Sheet1!A1:D4".</td></tr><tr><td>Add Table Column</td><td><code>addTableColumn</code></td><td>Adds a column to an Excel table. Give an index to insert the column at a specific position, shifting the previous column at that position to the right.</td></tr><tr><td>Add Table Row</td><td><code>addTableRow</code></td><td>Appends one or more rows to an Excel table. Supply the values as a two-dimensional array with one inner array per row, matching the table's column count.</td></tr><tr><td>Add Worksheet</td><td><code>addWorksheet</code></td><td>Adds a new worksheet to the end of a workbook. If no name is supplied, Excel generates one automatically.</td></tr><tr><td>Add Worksheet Named Item</td><td><code>addWorksheetNamedItem</code></td><td>Creates a named item scoped to a single worksheet, pointing at a range or formula on that sheet.</td></tr><tr><td>Add Worksheet Table</td><td><code>addWorksheetTable</code></td><td>Creates an Excel table over a range on a specific worksheet. Because the worksheet is named in the path, the address needs no sheet prefix, for example "A1:D4".</td></tr><tr><td>Apply Table Column Filter</td><td><code>applyTableColumnFilter</code></td><td>Applies a filter to one column of an Excel table so only matching rows stay visible. The criteria object selects the filter kind, such as a list of allowed values, a custom comparison, a dynamic date range, or a top or bottom N selection.</td></tr></tbody></table>

<details>

<summary>View 146 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Apply Table Sort</td><td><code>applyTableSort</code></td><td>Sorts the rows of an Excel table using one or more sort fields. Each sort field names a zero-based column index within the table and a sort direction.</td></tr><tr><td>Autofit Range Columns</td><td><code>autofitRangeColumns</code></td><td>Resizes the columns of a range so that each column is wide enough for its longest cell value.</td></tr><tr><td>Autofit Range Rows</td><td><code>autofitRangeRows</code></td><td>Resizes the rows of a range so that each row is tall enough for its tallest cell content.</td></tr><tr><td>Clear Chart Area Fill</td><td><code>clearChartAreaFill</code></td><td>Removes the background fill from the whole chart area.</td></tr><tr><td>Clear Chart Axis Line Format</td><td><code>clearChartAxisLineFormat</code></td><td>Removes the line formatting from one chart axis, returning it to no line.</td></tr><tr><td>Clear Chart Legend Fill</td><td><code>clearChartLegendFill</code></td><td>Removes the background fill from behind a chart's legend.</td></tr><tr><td>Clear Chart Title Fill</td><td><code>clearChartTitleFill</code></td><td>Removes the background fill from behind a chart's title.</td></tr><tr><td>Clear Range</td><td><code>clearRange</code></td><td>Clears a cell range. Choose whether to clear the cell contents, the formatting, or both.</td></tr><tr><td>Clear Range Fill</td><td><code>clearRangeFill</code></td><td>Removes the background fill colour from a cell range, returning it to no fill.</td></tr><tr><td>Clear Table Column Filter</td><td><code>clearTableColumnFilter</code></td><td>Removes the filter applied to one column of an Excel table.</td></tr><tr><td>Clear Table Filters</td><td><code>clearTableFilters</code></td><td>Removes every column filter currently applied to an Excel table, so all rows become visible again.</td></tr><tr><td>Clear Table Sort</td><td><code>clearTableSort</code></td><td>Clears the sort currently defined on an Excel table. The rows keep their present order but the sort is no longer reapplied.</td></tr><tr><td>Close Workbook Session</td><td><code>closeWorkbookSession</code></td><td>Closes an existing Excel workbook session. Supply the session ID returned by Create Workbook Session.</td></tr><tr><td>Convert Table To Range</td><td><code>convertTableToRange</code></td><td>Converts an Excel table back into an ordinary cell range, keeping the data and formatting but removing the table structure.</td></tr><tr><td>Create Comment Reply</td><td><code>createCommentReply</code></td><td>Posts a reply to a workbook comment thread. Choose plain text or mention content depending on how the reply is written.</td></tr><tr><td>Create Workbook</td><td><code>createWorkbook</code></td><td>Creates a new, empty Excel workbook at the root of the signed-in user's OneDrive and returns its drive item ID. Excel initialises the new file with a single worksheet named Sheet1 the first time a workbook action touches it. The file name must end in.xlsx.</td></tr><tr><td>Create Workbook Session</td><td><code>createWorkbookSession</code></td><td>Creates a new Excel workbook session and returns its session ID. A persistent session saves changes to the workbook file, while a non-persistent session evaluates the workbook in memory only.</td></tr><tr><td>Delete Chart</td><td><code>deleteChart</code></td><td>Deletes a chart from a worksheet. The chart's source data is left untouched.</td></tr><tr><td>Delete Drive Item</td><td><code>deleteDriveItem</code></td><td>Deletes a file or folder from the signed-in user's OneDrive by its drive item ID, sending it to the recycle bin. Use it to remove a workbook that is no longer needed.</td></tr><tr><td>Delete Range</td><td><code>deleteRange</code></td><td>Deletes the cells of a range and shifts the surrounding cells to fill the gap, either upwards or to the left.</td></tr><tr><td>Delete Table</td><td><code>deleteTable</code></td><td>Deletes an Excel table and the cells it covers from the workbook.</td></tr><tr><td>Delete Table Column</td><td><code>deleteTableColumn</code></td><td>Deletes one column from an Excel table together with its data.</td></tr><tr><td>Delete Table Row</td><td><code>deleteTableRow</code></td><td>Deletes one data row from an Excel table by its zero-based index. Rows below it shift up, so their indexes change.</td></tr><tr><td>Delete Worksheet</td><td><code>deleteWorksheet</code></td><td>Permanently deletes a worksheet and all of its content from the workbook.</td></tr><tr><td>Get Chart</td><td><code>getChart</code></td><td>Retrieves a single chart from a worksheet by its chart name.</td></tr><tr><td>Get Chart At Index</td><td><code>getChartAt</code></td><td>Retrieves a chart by its zero-based position in the worksheet's chart collection.</td></tr><tr><td>Get Chart Axis</td><td><code>getChartAxis</code></td><td>Retrieves one axis of a chart - the value, category or series axis - including its scale bounds and tick mark intervals.</td></tr><tr><td>Get Chart Axis Font</td><td><code>getChartAxisFont</code></td><td>Retrieves the font used for the tick labels of one chart axis.</td></tr><tr><td>Get Chart Axis Line Format</td><td><code>getChartAxisLineFormat</code></td><td>Retrieves the line formatting of one chart axis, such as the colour of the axis line.</td></tr><tr><td>Get Chart Axis Title</td><td><code>getChartAxisTitle</code></td><td>Retrieves the title of one chart axis, including its text and visibility.</td></tr><tr><td>Get Chart Data Labels</td><td><code>getChartDataLabels</code></td><td>Retrieves the data label settings of a chart, showing which pieces of information are displayed next to each data point.</td></tr><tr><td>Get Chart Gridlines</td><td><code>getChartGridlines</code></td><td>Retrieves the major or minor gridlines of one chart axis and reports whether they are visible.</td></tr><tr><td>Get Chart Image</td><td><code>getChartImage</code></td><td>Renders a chart as a base64-encoded PNG image at the requested pixel size, which is useful for embedding the chart in a report or email.</td></tr><tr><td>Get Chart Legend</td><td><code>getChartLegend</code></td><td>Retrieves the legend of a chart, including its position and whether it is visible.</td></tr><tr><td>Get Chart Point At Index</td><td><code>getChartPointAt</code></td><td>Retrieves a chart data point by its zero-based position within a series' point collection.</td></tr><tr><td>Get Chart Series At Index</td><td><code>getChartSeriesAt</code></td><td>Retrieves a chart data series by its zero-based position in the series collection.</td></tr><tr><td>Get Chart Title</td><td><code>getChartTitle</code></td><td>Retrieves the title of a chart, including its text and whether it is visible or overlaid on the plot area.</td></tr><tr><td>Get Columns After Range</td><td><code>getColumnsAfterRange</code></td><td>Retrieves the given number of columns immediately to the right of a range.</td></tr><tr><td>Get Columns Before Range</td><td><code>getColumnsBeforeRange</code></td><td>Retrieves the given number of columns immediately to the left of a range.</td></tr><tr><td>Get Comment Reply</td><td><code>getCommentReply</code></td><td>Retrieves a single reply from a workbook comment thread.</td></tr><tr><td>Get Drive Item</td><td><code>getDriveItem</code></td><td>Retrieves the metadata of a single OneDrive item by its drive item ID, such as the workbook file name, size and last modified time.</td></tr><tr><td>Get My Drive</td><td><code>getMyDrive</code></td><td>Retrieves the signed-in user's default OneDrive, including its ID, drive type and quota. Use it to confirm the connection works before addressing workbooks.</td></tr><tr><td>Get Named Item</td><td><code>getNamedItem</code></td><td>Retrieves a single named item of a workbook by its name.</td></tr><tr><td>Get Named Item Range</td><td><code>getNamedItemRange</code></td><td>Retrieves the cell range that a named item refers to, together with its values and formulas.</td></tr><tr><td>Get Pivot Table</td><td><code>getPivotTable</code></td><td>Retrieves a single pivot table on a worksheet by its pivot table ID.</td></tr><tr><td>Get Range</td><td><code>getRange</code></td><td>Retrieves a cell range from a worksheet by its A1-style address, returning the values, display text, formulas, number formats and dimensions of the range.</td></tr><tr><td>Get Range Border</td><td><code>getRangeBorder</code></td><td>Retrieves a single border of a cell range by the side it applies to, such as EdgeTop or InsideHorizontal.</td></tr><tr><td>Get Range Border At Index</td><td><code>getRangeBorderAt</code></td><td>Retrieves one border of a cell range by its zero-based position within the border collection.</td></tr><tr><td>Get Range Bounding Rectangle</td><td><code>getRangeBoundingRect</code></td><td>Retrieves the smallest rectangular range that encloses both a range and a second range. For example the bounding rectangle of B2:C5 and D10:E15 is B2:E15.</td></tr><tr><td>Get Range Cell</td><td><code>getRangeCell</code></td><td>Retrieves a single cell from within a range, addressed by its zero-based row and column offsets relative to the top-left cell of the range.</td></tr><tr><td>Get Range Column</td><td><code>getRangeColumn</code></td><td>Retrieves a single column of a range, addressed by its zero-based offset from the first column of the range.</td></tr><tr><td>Get Range Entire Column</td><td><code>getRangeEntireColumn</code></td><td>Retrieves the full worksheet columns that a range spans, from row 1 to the last row of the sheet. Returns the range's address, size, position and hidden state; cell values are not returned because a full column has over a million rows (use Get Range for values).</td></tr><tr><td>Get Range Entire Row</td><td><code>getRangeEntireRow</code></td><td>Retrieves the full worksheet rows that a range spans, from column A to the last column of the sheet. Because that is over sixteen thousand columns, always pass Select to limit the properties returned, for example "address,rowCount,columnCount" - without it the response is too large to return.</td></tr><tr><td>Get Range Fill</td><td><code>getRangeFill</code></td><td>Retrieves the background fill colour applied to a cell range.</td></tr><tr><td>Get Range Font</td><td><code>getRangeFont</code></td><td>Retrieves the font settings applied to a cell range, including name, size, colour, bold, italic and underline.</td></tr><tr><td>Get Range Format</td><td><code>getRangeFormat</code></td><td>Retrieves the formatting of a cell range, including column width, row height, text alignment and wrapping.</td></tr><tr><td>Get Range Format Protection</td><td><code>getRangeFormatProtection</code></td><td>Retrieves the cell-level protection settings of a range, showing whether its cells are locked and whether their formulas are hidden.</td></tr><tr><td>Get Range Intersection</td><td><code>getRangeIntersection</code></td><td>Retrieves the range of cells shared by a range and a second range. Returns an error if the two ranges do not overlap.</td></tr><tr><td>Get Range Last Cell</td><td><code>getRangeLastCell</code></td><td>Retrieves the bottom-right cell of a range.</td></tr><tr><td>Get Range Last Column</td><td><code>getRangeLastColumn</code></td><td>Retrieves the last column of a range.</td></tr><tr><td>Get Range Last Row</td><td><code>getRangeLastRow</code></td><td>Retrieves the last row of a range.</td></tr><tr><td>Get Range Offset Range</td><td><code>getRangeOffsetRange</code></td><td>Retrieves a range of the same size as the source range but shifted by the given number of rows and columns. Positive offsets move down and right, negative offsets move up and left.</td></tr><tr><td>Get Range Resized Range</td><td><code>getRangeResizedRange</code></td><td>Retrieves a range that starts at the same top-left cell as the source range but is grown or shrunk by the given number of rows and columns.</td></tr><tr><td>Get Range Used Range</td><td><code>getRangeUsedRange</code></td><td>Retrieves the used portion of a range, that is the smallest sub-range containing all cells with data or formatting.</td></tr><tr><td>Get Range Visible View</td><td><code>getRangeVisibleView</code></td><td>Retrieves only the visible cells of a range, excluding rows and columns hidden by the user or by an active filter.</td></tr><tr><td>Get Range Visible View Range</td><td><code>getRangeVisibleViewRange</code></td><td>Retrieves the underlying range object that a visible view was derived from.</td></tr><tr><td>Get Range Visible View Row At Index</td><td><code>getRangeVisibleViewItemAt</code></td><td>Retrieves one visible row of a range by its zero-based position within the visible view, skipping rows hidden by the user or by an active filter. Implemented with OData paging over the visible-row collection, because Graph rejects both the itemAt(index=N) form shown in its own documentation and the rows(N) indexed form.</td></tr><tr><td>Get Rows Above Range</td><td><code>getRowsAboveRange</code></td><td>Retrieves the given number of rows immediately above a range, which is useful for reading header rows that sit just above a block of data.</td></tr><tr><td>Get Rows Below Range</td><td><code>getRowsBelowRange</code></td><td>Retrieves the given number of rows immediately below a range.</td></tr><tr><td>Get Table</td><td><code>getTable</code></td><td>Retrieves a single Excel table by its table ID or table name.</td></tr><tr><td>Get Table Column</td><td><code>getTableColumn</code></td><td>Retrieves a single column of an Excel table by its column ID or its header name.</td></tr><tr><td>Get Table Column At Index</td><td><code>getTableColumnAt</code></td><td>Retrieves a column of an Excel table by its zero-based position in the column collection.</td></tr><tr><td>Get Table Column Data Body Range</td><td><code>getTableColumnDataBodyRange</code></td><td>Retrieves the data cells of one table column as a cell range, excluding the header and total cells.</td></tr><tr><td>Get Table Column Header Row Range</td><td><code>getTableColumnHeaderRowRange</code></td><td>Retrieves the header cell of one table column as a cell range.</td></tr><tr><td>Get Table Column Range</td><td><code>getTableColumnRange</code></td><td>Retrieves the full cell range of one table column, including its header and total cells.</td></tr><tr><td>Get Table Column Total Row Range</td><td><code>getTableColumnTotalRowRange</code></td><td>Retrieves the total cell of one table column as a cell range. The table must have its total row switched on.</td></tr><tr><td>Get Table Data Body Range</td><td><code>getTableDataBodyRange</code></td><td>Retrieves the data area of an Excel table as a cell range, excluding the header row and the total row.</td></tr><tr><td>Get Table Header Row Range</td><td><code>getTableHeaderRowRange</code></td><td>Retrieves the header row of an Excel table as a cell range, which is the quickest way to read the table's column names.</td></tr><tr><td>Get Table Range</td><td><code>getTableRange</code></td><td>Retrieves the full cell range covered by an Excel table, including its header and total rows.</td></tr><tr><td>Get Table Row At Index</td><td><code>getTableRowAt</code></td><td>Retrieves a data row of an Excel table by its position in the row collection, using the itemAt function form.</td></tr><tr><td>Get Table Row Range</td><td><code>getTableRowRange</code></td><td>Retrieves the underlying cell range of one Excel table row, giving its worksheet address alongside its values.</td></tr><tr><td>Get Table Sort</td><td><code>getTableSort</code></td><td>Retrieves the sort currently defined on an Excel table, including its sort fields and whether the sort is still valid.</td></tr><tr><td>Get Table Total Row Range</td><td><code>getTableTotalRowRange</code></td><td>Retrieves the total row of an Excel table as a cell range. The table must have its total row switched on.</td></tr><tr><td>Get Workbook Application</td><td><code>getWorkbookApplication</code></td><td>Retrieves the Excel application object for a workbook, which reports the workbook's current calculation mode.</td></tr><tr><td>Get Workbook Comment</td><td><code>getWorkbookComment</code></td><td>Retrieves a single cell comment from a workbook by its comment ID.</td></tr><tr><td>Get Workbook Operation</td><td><code>getWorkbookOperation</code></td><td>Retrieves the status of a long-running workbook operation. Excel returns an operation ID in the Location header when a request is processed asynchronously; poll this action until the status is succeeded or failed.</td></tr><tr><td>Get Worksheet</td><td><code>getWorksheet</code></td><td>Retrieves a single worksheet from a workbook by its worksheet ID or its sheet name.</td></tr><tr><td>Get Worksheet Cell</td><td><code>getWorksheetCell</code></td><td>Retrieves a single cell of a worksheet by its zero-based row and column numbers, counted from the top-left corner of the sheet.</td></tr><tr><td>Get Worksheet Protection</td><td><code>getWorksheetProtection</code></td><td>Retrieves the protection state of a worksheet and the set of actions users are still permitted to perform on it.</td></tr><tr><td>Get Worksheet Used Range</td><td><code>getWorksheetUsedRange</code></td><td>Retrieves the smallest range that encompasses all cells with data or formatting on a worksheet, including its address, values and formulas.</td></tr><tr><td>Insert Range</td><td><code>insertRange</code></td><td>Inserts blank cells at a range address and shifts the existing cells down or to the right. Returns the newly inserted range.</td></tr><tr><td>List Chart Points</td><td><code>listChartPoints</code></td><td>Lists the individual data points of one chart data series. The parent series is addressed positionally as itemAt(index=N), which is the only form the Excel API accepts.</td></tr><tr><td>List Chart Series</td><td><code>listChartSeries</code></td><td>Lists the data series of a chart.</td></tr><tr><td>List Charts</td><td><code>listCharts</code></td><td>Lists the charts on a worksheet with their names and on-sheet position and size.</td></tr><tr><td>List Comment Replies</td><td><code>listCommentReplies</code></td><td>Lists the replies posted on one workbook comment thread.</td></tr><tr><td>List Drive Root Items</td><td><code>listDriveRootItems</code></td><td>Lists the files and folders at the root of the signed-in user's OneDrive. Use it to find the drive item ID of an.xlsx workbook, which every Excel action requires.</td></tr><tr><td>List Folder Children</td><td><code>listFolderChildren</code></td><td>Lists the files and folders contained in a OneDrive folder, identified by its drive item ID. Use it to navigate to a workbook stored inside a folder.</td></tr><tr><td>List Named Items</td><td><code>listNamedItems</code></td><td>Lists the named items (defined names) of a workbook, each mapping a name to a range or a constant formula.</td></tr><tr><td>List Range Borders</td><td><code>listRangeBorders</code></td><td>Lists every border of a cell range, one entry per border side such as EdgeTop, EdgeBottom and InsideVertical.</td></tr><tr><td>List Range Visible View Rows</td><td><code>listRangeVisibleViewRows</code></td><td>Lists the individual visible rows of a range, skipping rows hidden by the user or by an active filter.</td></tr><tr><td>List Table Columns</td><td><code>listTableColumns</code></td><td>Lists the columns of an Excel table with their names, indexes and values.</td></tr><tr><td>List Table Rows</td><td><code>listTableRows</code></td><td>Lists the data rows of an Excel table with their values. Use the page size and skip parameters to page through large tables.</td></tr><tr><td>List Tables</td><td><code>listTables</code></td><td>Lists every Excel table in a workbook, across all worksheets.</td></tr><tr><td>List Workbook Comments</td><td><code>listWorkbookComments</code></td><td>Lists the cell comments in a workbook, with their content and the person who left them.</td></tr><tr><td>List Worksheet Named Items</td><td><code>listWorksheetNamedItems</code></td><td>Lists the named items scoped to one worksheet rather than to the whole workbook.</td></tr><tr><td>List Worksheet Pivot Tables</td><td><code>listWorksheetPivotTables</code></td><td>Lists the pivot tables present on a worksheet.</td></tr><tr><td>List Worksheet Tables</td><td><code>listWorksheetTables</code></td><td>Lists the Excel tables that live on one specific worksheet.</td></tr><tr><td>List Worksheets</td><td><code>listWorksheets</code></td><td>Lists every worksheet in a workbook with its ID, name, position and visibility.</td></tr><tr><td>Merge Range</td><td><code>mergeRange</code></td><td>Merges the cells of a range into a single cell. Set Across to true to merge each row of the range separately instead of merging the whole range.</td></tr><tr><td>Protect Worksheet</td><td><code>protectWorksheet</code></td><td>Protects a worksheet so its locked cells cannot be edited. Supply the options object to allow specific operations such as sorting or using AutoFilter while the sheet is protected.</td></tr><tr><td>Reapply Table Filters</td><td><code>reapplyTableFilters</code></td><td>Reapplies the filters currently defined on an Excel table, refreshing which rows are hidden after the underlying data has changed.</td></tr><tr><td>Reapply Table Sort</td><td><code>reapplyTableSort</code></td><td>Reapplies the sort already defined on an Excel table, reordering the rows after the underlying data has changed.</td></tr><tr><td>Recalculate Workbook</td><td><code>recalculateWorkbook</code></td><td>Recalculates all formulas in the workbook using the chosen calculation type: Recalculate for changed formulas only, Full for every formula, or FullRebuild to rebuild dependencies as well.</td></tr><tr><td>Refresh All Pivot Tables</td><td><code>refreshAllPivotTables</code></td><td>Refreshes every pivot table on a worksheet in one call.</td></tr><tr><td>Refresh Pivot Table</td><td><code>refreshPivotTable</code></td><td>Refreshes one pivot table so it reflects the current state of its source data.</td></tr><tr><td>Refresh Workbook Session</td><td><code>refreshWorkbookSession</code></td><td>Extends the lifetime of an existing Excel workbook session so it does not expire while a long-running operation is in progress.</td></tr><tr><td>Search Drive Items</td><td><code>searchDriveItems</code></td><td>Searches the signed-in user's OneDrive for items matching a query string. Search for ".xlsx" to locate Excel workbooks and read their drive item IDs.</td></tr><tr><td>Set Chart Area Fill Colour</td><td><code>setChartAreaFillColor</code></td><td>Fills the background of the whole chart area with a single solid colour.</td></tr><tr><td>Set Chart Legend Fill Colour</td><td><code>setChartLegendFillColor</code></td><td>Fills the background behind a chart's legend with a single solid colour.</td></tr><tr><td>Set Chart Position</td><td><code>setChartPosition</code></td><td>Moves a chart so its top-left corner sits on the given start cell. Supply an end cell as well to make the chart exactly cover that block of cells.</td></tr><tr><td>Set Chart Source Data</td><td><code>setChartSourceData</code></td><td>Repoints an existing chart at a different source data range and optionally changes whether columns or rows form its data series.</td></tr><tr><td>Set Chart Title Fill Colour</td><td><code>setChartTitleFillColor</code></td><td>Fills the background behind a chart's title with a single solid colour.</td></tr><tr><td>Sort Range</td><td><code>sortRange</code></td><td>Sorts the rows or columns of a cell range using one or more sort fields. Each sort field names a zero-based key column or row and a sort direction.</td></tr><tr><td>Unmerge Range</td><td><code>unmergeRange</code></td><td>Splits previously merged cells in a range back into individual cells.</td></tr><tr><td>Unprotect Worksheet</td><td><code>unprotectWorksheet</code></td><td>Removes protection from a worksheet so all of its cells become editable again.</td></tr><tr><td>Update Chart</td><td><code>updateChart</code></td><td>Updates the size and on-sheet position of a chart. All measurements are in points.</td></tr><tr><td>Update Chart Axis</td><td><code>updateChartAxis</code></td><td>Sets the scale bounds and tick mark intervals of one chart axis. Send an empty string for any value to hand it back to Excel's automatic scaling.</td></tr><tr><td>Update Chart Axis Font</td><td><code>updateChartAxisFont</code></td><td>Updates the font of one chart axis' tick labels, setting size, colour, bold, italic and underline.</td></tr><tr><td>Update Chart Axis Line Format</td><td><code>updateChartAxisLineFormat</code></td><td>Sets the colour of the axis line on one chart axis.</td></tr><tr><td>Update Chart Axis Title</td><td><code>updateChartAxisTitle</code></td><td>Sets the text of a chart axis title and whether that title is shown.</td></tr><tr><td>Update Chart Data Labels</td><td><code>updateChartDataLabels</code></td><td>Controls what a chart's data labels display and where they sit relative to each data point.</td></tr><tr><td>Update Chart Gridlines</td><td><code>updateChartGridlines</code></td><td>Shows or hides the major or minor gridlines of one chart axis.</td></tr><tr><td>Update Chart Legend</td><td><code>updateChartLegend</code></td><td>Shows, hides or repositions the legend of a chart, and controls whether it overlaps the main chart body.</td></tr><tr><td>Update Chart Series</td><td><code>updateChartSeries</code></td><td>Renames a data series of a chart.</td></tr><tr><td>Update Chart Title</td><td><code>updateChartTitle</code></td><td>Sets the text of a chart title and controls whether it is shown and whether it overlays the plot area.</td></tr><tr><td>Update Named Item</td><td><code>updateNamedItem</code></td><td>Updates the comment or visibility of an existing named item in a workbook.</td></tr><tr><td>Update Range</td><td><code>updateRange</code></td><td>Writes values, formulas or number formats into a cell range, and optionally hides its rows or columns. Values and formulas are supplied as a two-dimensional array whose shape must match the range address.</td></tr><tr><td>Update Range Border</td><td><code>updateRangeBorder</code></td><td>Updates one border of a cell range, setting its line style, colour and weight.</td></tr><tr><td>Update Range Fill</td><td><code>updateRangeFill</code></td><td>Sets the background fill colour of a cell range.</td></tr><tr><td>Update Range Font</td><td><code>updateRangeFont</code></td><td>Updates the font of a cell range: typeface name, size, colour, bold, italic and underline style. Only the properties you supply are changed.</td></tr><tr><td>Update Range Format</td><td><code>updateRangeFormat</code></td><td>Updates the formatting of a cell range: column width, row height, horizontal and vertical alignment, and text wrapping. Only the properties you supply are changed.</td></tr><tr><td>Update Range Format Protection</td><td><code>updateRangeFormatProtection</code></td><td>Sets whether the cells of a range are locked and whether their formulas are hidden. These settings take effect only once the worksheet itself is protected.</td></tr><tr><td>Update Table</td><td><code>updateTable</code></td><td>Updates an Excel table's header row visibility, total row visibility and visual style. Only the properties you supply are changed.</td></tr><tr><td>Update Table Column</td><td><code>updateTableColumn</code></td><td>Overwrites the values of one column of an Excel table. The values array must include the header cell when the table shows headers.</td></tr><tr><td>Update Table Row</td><td><code>updateTableRow</code></td><td>Overwrites the values of one data row of an Excel table, identified by its zero-based index.</td></tr><tr><td>Update Worksheet</td><td><code>updateWorksheet</code></td><td>Updates a worksheet's name, its zero-based position in the workbook, or its visibility. Only the properties you supply are changed.</td></tr></tbody></table>

</details>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/productivity/microsoft-excel.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
