Skip to content

Commit 2b4789a

Browse files
authored
[excel] (Script buttons) Add note about OneDrive sharing for buttons (#746)
* Add note about OneDrive sharing for buttons * Add consumer note
1 parent 2a65648 commit 2b4789a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/develop/script-buttons.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Run Office Scripts in Excel from buttons
33
description: Add buttons to workbooks that control Office Scripts in Excel.
44
ms.topic: overview
5-
ms.date: 12/19/2023
5+
ms.date: 06/06/2024
66
ms.localizationpriority: medium
77
---
88

@@ -12,12 +12,18 @@ Help your colleagues find and run your scripts by adding script buttons to a wor
1212

1313
:::image type="content" source="../images/run-from-button.png" alt-text="A button in the worksheet that runs a script when clicked.":::
1414

15+
> [!NOTE]
16+
> Script buttons aren't available during the Office Scripts preview for personal and family Microsoft 365 subscriptions.
17+
1518
## Create script buttons
1619

1720
When viewing a script, select **Add in workbook**. This creates a button in the workbook that runs the associated script. It also shares the script with the workbook, so everyone with write permissions to the workbook can use your helpful automation.
1821

1922
:::image type="content" source="../images/add-button.png" alt-text="The 'Add in workbook' button on the 'Create Report' script details page with a button named 'Create Report' shown in the Excel grid.":::
2023

24+
> [!IMPORTANT]
25+
> If OneDrive sharing is restricted by organizational policies, you can't create a script button.
26+
2127
## Remove script buttons
2228

2329
To stop sharing a script through a button, select the arrow next to **Add in workbook** and choose the option **Remove from workbook**. This removes all the buttons that run the script. Deleting a single button removes the script from that one button, even if the operation is undone or the button is cut and pasted.

0 commit comments

Comments
 (0)