legalhustler
Well-known Member
- Joined
- Jun 5, 2014
- Messages
- 1,214
- Office Version
- 365
- Platform
- Windows
I have a Excel macro that copies a specific sheet from the source workbook to a destination workbook, both are on SharePoint. The macro resides on the destination workbook. I wanted to create a scheduled flow to run the macro every business day but I'm having some issues.
My Power Automate version does not have "Run Excel Macro" action, so I am trying to use "Run Script" action which appears like it can be used to trigger a macro and not just a Office Script, and in the script field I tried a few things but it keeps giving the error that it's a Bad Request - unable to parse script reference.
I tried the following naming conventions for the script field:
Module1.CopySheet (Module name followed by procedure name)
Daily Orders!Module1.CopySheet (Workbook name followed by module name followed by procedure name)
I even tried copying/pasting my entire macro to the script field but to no avail
Can someone please advise on how I make this happen or if there is alternative method to run this routine job?
My Power Automate version does not have "Run Excel Macro" action, so I am trying to use "Run Script" action which appears like it can be used to trigger a macro and not just a Office Script, and in the script field I tried a few things but it keeps giving the error that it's a Bad Request - unable to parse script reference.
I tried the following naming conventions for the script field:
Module1.CopySheet (Module name followed by procedure name)
Daily Orders!Module1.CopySheet (Workbook name followed by module name followed by procedure name)
I even tried copying/pasting my entire macro to the script field but to no avail
Can someone please advise on how I make this happen or if there is alternative method to run this routine job?
Last edited: