Excel
77 commands. Toolkit id ooa.excel.
| Command | What it does |
|---|---|
| Append workbook | Copy every sheet of another workbook file to the end of this workbook; clashing names get a number suffix. |
| Append worksheet | Copy one sheet, chosen by name or position, from another workbook file to the end of this workbook. |
| Autofit columns | Make columns just wide enough for their contents, like double-clicking a column border in Excel. |
| Break workbook links | Replace formulas that refer to other workbooks, or to one chosen workbook, with their last calculated values. |
| Change workbook link | Point the links to one source workbook at another file; the new file should have the same sheets and cells. |
| Clear filter | Show every row a filter hid on a sheet and remove the sheet's Excel filter, or keep its buttons and drop only the conditions. |
| Clear range | Clear the contents, the formats or both of a range, or of the current selection; the cells stay where they are (Delete cells moves the cells around them). |
| Close | Close the workbook session, saving the changes first when asked. |
| Copy range | Copy a range to another place on the same sheet or another sheet of the workbook, like copy and paste in Excel: everything, values only, formulas only or formats only. Relative cell references in formulas move with the copy. |
| Copy worksheet | Duplicate a worksheet inside the same workbook under a new name. |
| Create chart | Add a column, bar, line or pie chart of a range: the first column gives the categories, the header row the series names and each further column one series. |
| Create Excel table | Turn a range with a header row into a named Excel table with a table style, like Ctrl+T in Excel. |
| Create pivot table | Create a pivot table from a range with a header row: fields as rows, columns, values (Sum, Count, Average, Max or Min) and filters. Excel fills in the figures when the workbook is opened. |
| Create workbook | Create a new empty .xlsx file on disk with one named sheet and open it as a session; optionally with a password to open, a password to edit and a sensitivity label. |
| Create worksheet | Create a worksheet at the end or at a position; when a sheet of that name exists the step stops, unless 'replace' is ticked, which deletes that sheet and everything on it first. |
| Delete cells | Delete the cells of a range, or of the current selection, and close the gap by moving the cells below up or the cells to the right left. |
| Delete columns | Delete whole columns and move the columns to the right leftwards. |
| Delete rows | Delete whole rows and move the rows below up. |
| Delete table column | Remove a column from an Excel table and move the table cells to its right back by one. |
| Delete worksheet | Delete a worksheet chosen by name or position. |
| Each row in a worksheet | Yield each row of a sheet (or of a range) of an open workbook as a record keyed by the header names (Column1, Column2 ... without a header). |
| Fill down or right | Copy the first row of a range down to its other rows, or its first column right to its other columns, like Excel's Fill Down and Fill Right: values, formulas (with relative references moved) and formats. |
| Filter | Return the rows of a sheet, a range or an Excel table whose value in one column matches a condition, as a Data Table; optionally also hide the other rows, or put the condition into the file as a real Excel filter. |
| Find | Find cells whose content contains (or equals) a text, in the whole sheet or a range; returns their addresses in search order. |
| Find next empty cell | Starting from a cell, walk along its column or row in a direction and return the first empty cell. |
| Format cells | Set the number format, font, fill, alignment, wrapping and borders of a range or the selection; only the options given change, the rest of each cell's format stays. |
| Get all cells | Read the used area of a sheet, or only rows N to M of it, as a table; the first row can be the column names. |
| Get cell | Read one cell, or the active cell; formulas return their calculated value, or the text as Excel displays it. |
| Get cell address | Give the address (such as B7) of the active cell, of a row and column, or of the cell some rows below a column title. |
| Get cell colour | Return a cell's fill colour or font colour as a hex value such as #FFC000, or as red, green and blue numbers. |
| Get column name | Give the letters of a column, from its number (28 becomes AB), from a cell, or of the active cell. |
| Get current sheet name | Return the name of the active worksheet. |
| Get number of rows | Count the rows that hold data, or all rows of the used area, and report the number of the last used row. |
| Get range | Read a rectangular range such as A1:D20 as a table. |
| Get row and column number | Split a cell address such as B7, or the active cell, into its row and column numbers. |
| Get sensitivity label | Read the sensitivity label stored in the workbook's MSIP_Label custom document properties. |
| Get sheet count | Count the worksheets in the workbook, with or without the hidden ones. |
| Get sheet names | List the worksheet names, optionally leaving out hidden sheets. |
| Get table range | Return the address of the smallest rectangle holding all data on the sheet (including pivot tables), or of a named Excel table or pivot table, e.g. A1:D20. |
| Get workbook links | List the other workbooks this workbook's formulas refer to and the cells that use them. |
| Go to cell | Make a cell the active cell, or move the active cell one step or to the start or end of its row or column, and remember it for later steps. |
| Go to next empty cell | Starting from a cell, walk along its column or row to the first empty cell and make that cell the active cell. |
| Hide columns | Hide one or more columns. |
| Hide rows | Hide one or more rows. |
| Hide sheet | Hide a worksheet chosen by name or position; at least one sheet must stay visible. |
| Insert columns | Insert empty columns before a column, moving the columns to the right. |
| Insert rows | Insert empty rows before a row number, moving the rows below down. |
| Insert table column | Add a named column to an Excel table, moving the table cells to its right over by one. |
| Open workbook | Open an .xlsx or .xls workbook (a local path, onedrive:path or a pasted SharePoint or OneDrive link), or a .csv or .txt file (one sheet, saved back as text), or create a new one, as a named session; can open encrypted files, open read-only and skip hidden sheets. |
| Protect sheet | Password-protect a worksheet so its locked cells cannot be edited in Excel, choosing which operations people may still perform. |
| Protect workbook | Require a password to open the file, lock the workbook structure and window layout with a password, or both. |
| Read cell formula | Return the formula a cell (or the active cell) holds, or an empty text when it holds a plain value. |
| Read column | Read the values of one column, from the active cell or a start row down to an end row or the last used row. |
| Read row | Read the values of one row, from the active cell or a start column to an end column or the last used cell. |
| Remove blank rows | Delete every empty row inside the used area, or between two rows, and close the gaps. |
| Remove duplicate rows | Remove the rows of a range (or of the used area) that repeat an earlier row, comparing all columns or only the chosen ones, like Excel's Remove Duplicates; the first of each set is kept and the rows below move up inside the range. |
| Rename worksheet | Give a worksheet, chosen by name or position, a new name. |
| Replace | Replace text in the cells of a sheet or range, optionally matching case or the whole cell, inside formulas, or only in the first matching cell. |
| Save | Save the workbook, optionally to a new path (Save as); encrypted workbooks stay encrypted. |
| Save as | Save the workbook to a new file as xlsx, xls or csv, optionally password-protected; after xlsx or xls the session continues on the new file. |
| Select range | Select a range, whole rows, whole columns (given, or those of the active cell) or the whole sheet; later steps see it as the current selection and its top-left cell becomes active. |
| Set cell | Write a value to one cell, or to the active cell. |
| Set cell colour | Give a cell or range a solid fill colour or a font colour. |
| Set column width | Set the width of one or more columns, in characters as Excel shows it. |
| Set formula | Put a formula in a cell, or in the active cell, e.g. SUM(C2:C10). |
| Set row height | Set the height of one or more rows, in points as Excel shows it. |
| Set sensitivity label | Write a sensitivity label into the workbook's MSIP_Label custom properties, replacing any earlier label; this marks the file but does not encrypt it. |
| Sort | Sort the rows of a range, an Excel table or the used area by one column and an optional second column, ascending or descending, keeping a header row in place; or sort only that column's cells. |
| Switch to sheet | Make a worksheet, chosen by name or position, the active one; later steps with an empty sheet input work on it. |
| Text to columns | Split the text of a column into several columns at a delimiter, like Excel's Text to Columns; the parts overwrite the cells to the right. |
| Unhide all sheets | Make every hidden worksheet visible. |
| Unhide columns | Show hidden columns again. |
| Unhide rows | Show hidden rows again. |
| Unhide sheet | Make a hidden worksheet, chosen by name or position, visible again. |
| Unprotect sheet | Remove protection from a worksheet; for .xlsx files the password is checked first. |
| Unprotect workbook | Stop asking for a password to open the file, unlock a protected workbook structure and windows (the password must match), or both. |
| Write from Data Table | Write a table (with column names) starting at a cell. |