Office Scripts add automation to Excel worksheets in OneDrive, SharePoint, and the desktop version. This feature adds a button to your Excel sheet and runs a series of steps when you click on it.

Instead of doing tasks manually, you can create an Excel online button to run a script to improve your workflow and productivity. If you share the workbook in Microsoft Teams, everyone accessing the sheet can use the script button, too.

Learn how to add an automation button to Excel with these steps.

1. Open your Excel Workbook

Open the spreadsheet you want to add an Office Script to. You can add automation to one Excel workbook at a time, so repeat these steps for all the sheets you want a button for. Then, click on the cell where you want the button to appear.

2. Navigate to the β€œAutomate” Menu

Go to the β€œAutomate” tab in Microsoft Excel. This menu has the options and settings for existing scripts and scripts you have previously created.

3. Choose the Script You Want to Run

The β€œAutomate” tab shows a list of the most recent scripts used and an β€œAll Scripts” button for a list of the scripts. In the script list, select the option you want a button for. The β€œCode Editor” window will display the script name and a description of what it does. Click β€œAll Scripts” to return to the list of options.

4. Select β€œMore options”

Once you have chosen a script, see the β€œMore options” menu (…).

5. Add a Button of the script

Under the menu of further options, choose β€œAdd button.” An Office Script button with the default appearance settings will pop up in the selected cell.

6. Customize the Script Button

If you want to alter your button, right-click it to show the menu of editing options. You can choose a fill color, change the text from the script name, and more. Open the β€œShape” tab to change the button’s shape. To adjust its size or move the placement, click and drag the button as you would with a text box.

7. Run Your Office Script in Excel

Left-click on the button, and a β€œScript Run Status” window will appear to show the script’s progress. The script will be completed in just a few seconds, and the window will say, β€œThe [script name] script ran successfully.”

Learn More About Our Managed IT Services

Ready to offload your IT management? Agio offers IT-as-a-Service to host, monitor, and support your network. We understand your IT issues and provide the consistency, visibility, and scalability you need for high uptime and productivity. Contact us to learn more.

See also  The Power of Collective Defense: Why Agio Clients Are Always One Step Ahead