Unfortunately not right now, we don't support execution of excel macro. But that is an amazing suggestion i will forward it to see if we can include it in our plans. Thanks a lot for reporting this.
Yes, we need to be able to run macros from a Flow. But not just Excel macros. We need to be able to run any VBA macros.
Here is a real world example of why we need this--in this case for quickly and easily building automated interfaces. Accounting passes us an Excel file containing some data that we need to import into Microsoft Project. We want to first run a Cleanup macro in Excel--and then we want to run a Project macro to import the data. A perfect opportunity for Flow to add significant value!
So much power will be unleashed, if somebody gets at it and bakes this into the Flow Service.
I also concur with the above!
Being able to run macros will significantly increase the use of PowerApps.
Additionally I also want to see the ability to, with the help of macros, save (e.g. tables of data) as .csv files locally.
Agree with above. Need to start modifying data mid-flow. This will address a lot of hassle.
For those with challenges performing routine formatting macros to large quantities of flowed data, recommend creating a flow that leads data to static locations, then creating a master controller macro workbook that grabs files from those directories into an array, opens the latest workbook in those directories, applies the subformatting macro routine, then saves/closes the arrayed workbooks one by one.
You know. Or Microsoft could simply add a cool new feature to call Macro/VBA code from OneDrive-stored Excel files. Fairly simple to implement. Would make a lot of us happy 🙂
The above can be acheived and automayed by the following steps , below is the workaround
In the Macro Enabled Excel Sheet Add another Macro to Save the File as
ActiveWorkbook.SaveAs Filename:= _
, FileFormat:=xlOpenXMLWorkbook, CreateBackup:=True
This will save the file as a Non Macro Excel File on a Sharepoint or Onedrive Site
Use a Power Shell Query to update the Macro enable Excel file and save on
Use task scheduler to repeate the above process as per your required interval (Hourly/daily/Monthly etc)
Once the 3 steps are completed the your workbook is completely automated and can be connected to flow as any other excel file.
Definately needs this. so this also means also that all flow actions that involve spreadsheets (adding a row to an existing table, etc., etc.,) need to support writing to macro enabled spreadsheets (*.xlsm) at the moment you can only write data from Flow to *.xls sheets.
This is extremely inconvienient and means for example in a process I wanted to automate e2e using Forms Flow Excel VBA and PowerPoint and Power BI [ Forms data --> automatically generated pptx slide & Power BI report that links to the slide ], I have to get a human to open a macro enabled spreadsheet and run macro 1 which sucks data out of a .xls spreadsheet and then macro 2 which makes the powerpoint slides. Urgghhh.
Please please consider prioritising this capability,
Together with the possibility to update an XLSM file (e.g. add row) the possibility to run an Excel Macro has been requested for over 2 years... That's either saying something about the speed improvements are made or saying it's not going to happen.
Instead of focusing on inventing new names such as "Power Automate" to feed the "Power Platform" marketing bubble - address some more resources to development of the product itself so important features can get developed.
My 2 cents...
We are excited to announce the launch of Power Virtual Agents Community. Check it out now!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!