Skip to content

Commit 2eac92c

Browse files
authored
[excel] (Power Automate) Clarify any connector action works with xlsm files (#664)
* Clarify any connector action works with xlsm files * Extra newline
1 parent a507f08 commit 2eac92c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/develop/macros-power-automate.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
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: 08/09/2023
4+
ms.date: 10/19/2023
55
ms.localizationpriority: medium
66
---
77

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

10-
You can integrate your .xlsm files with a Power Automate flow. This lets you start to convert your existing automation solutions to web-based formats. Please note that the macros contained in the .xlsm files cannot be run through Power Automate. Only Office Scripts are enabled there.
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/).
1111

12-
The [Excel Online (Business) connector](https://make.powerautomate.com/connectors/shared_excelonlinebusiness/excel-online-business/) in [Power Automate](https://make.powerautomate.com/) is typically limited to files in the Microsoft Excel Open XML Spreadsheet (.xlsx) format. Its file browser only lets you select .xlsx files. However, macro-enabled files are compatible with the connector's **Run script** action if the file metadata is used.
12+
> [!IMPORTANT]
13+
> The macros contained in the .xlsm files cannot be run through Power Automate. Only Office Scripts are enabled there.
1314
14-
In your flow, use 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. The **Run script** action accepts this metadata as a valid file. Use the *ID* dynamic content returned from the **Get file metadata** action as the "File" argument when running the script. The following screenshot shows a flow providing the metadata for a file called "Test Macro File.xlsm" to a **Run script** action.
15-
16-
:::image type="content" source="../images/xlsm-in-power-automate.png" alt-text="A flow with a Get file metadata action passing the metadata of a macro file to a Run script action.":::
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.
1716

1817
> [!WARNING]
1918
> 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.
2019
21-
## Other resources
20+
## See also
2221

23-
[Watch Sudhi Ramamurthy's YouTube video on how use an .xlsm file in a Run Script action](https://youtu.be/o-H9BbywJQQ).
22+
- [Excel Online (Business) connector reference](/connectors/excelonlinebusiness/)
23+
- [Run Office Scripts with Power Automate](power-automate-integration.md)
-50.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)