Skip to content

Commit f279351

Browse files
authored
Merge pull request #741 from OfficeDev/main
[admin] Publish
2 parents 852c79b + 93fed25 commit f279351

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/develop/macros-power-automate.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
title: Use macro-enabled files in Power Automate flows
33
description: Learn how to use macro-enabled files, or .xlsm files, in Power Automate flows.
4-
ms.date: 10/19/2023
4+
ms.date: 05/08/2024
55
ms.localizationpriority: medium
66
---
77

88
# How to use macro-enabled files in Power Automate flows
99

10-
[Power Automate](https://make.powerautomate.com/) flows support .xlsm files in the [Excel Online (Business) connector](https://make.powerautomate.com/connectors/shared_excelonlinebusiness/excel-online-business/).
10+
[Power Automate](https://make.powerautomate.com/) flows support .xlsm files in the [Excel Online (Business) connector](https://make.powerautomate.com/connectors/shared_excelonlinebusiness/excel-online-business/). However, only the **Run script** action lets you select .xlsm files through the file browser. Other connector actions require you use the file ID.
11+
12+
Get the file ID with a **Get File Metadata** action from either the [OneDrive for Business](https://make.powerautomate.com/connectors/shared_onedriveforbusiness/onedrive-for-business/) or [SharePoint](https://make.powerautomate.com/connectors/shared_sharepointonline/sharepoint/) connectors. Use the *ID* dynamic content returned from the **Get file metadata** action as the "File" argument for Excel connector actions. Note that parameters such as "Table" in the **Add a row into a table** action won't automatically propagate a dropdown list of tables to choose. You'll need to enter the name of the table or other Excel object.
1113

1214
> [!IMPORTANT]
1315
> The macros contained in the .xlsm files cannot be run through Power Automate. Only Office Scripts are enabled there.
1416
15-
The **Run script** action lets you select .xlsm files. Other connector actions require you use the file ID. Get this ID with the **Get File Metadata** action from either the [OneDrive for Business](https://make.powerautomate.com/connectors/shared_onedriveforbusiness/onedrive-for-business/) or [SharePoint](https://make.powerautomate.com/connectors/shared_sharepointonline/sharepoint/) connectors. Use the *ID* dynamic content returned from the **Get file metadata** action as the "File" argument for Excel connector actions.
16-
1717
> [!WARNING]
1818
> Some .xlsm files, especially those with ActiveX or Form controls, may not work in the Excel online connector. Be sure to test before deploying your solution.
1919

0 commit comments

Comments
 (0)