cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ffritz
Level: Powered On

Run Excel Macro

Hi,

is it possible to execute an Excel Macro via flow for a Excel Document stored on OneDrive/Sharepiont Online or otherwise?

I could not find any activity for that.

Thx

Fritz

12 REPLIES 12
Highlighted
PowerApps Staff ashwinsa
PowerApps Staff

Re: Run Excel Macro

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.

Vishal-S
Level: Power Up

Re: Run Excel Macro

Add my vote in it too. Ned the ability to run the Macro within Excel.

Anonymous
Not applicable

Re: Run Excel Macro

I would like to see this functionality as well! I hope it gets added soon.

ET
Level: Power Up

Re: Run Excel Macro

I concur, could use this feature today!

emhanna
Level: Powered On

Re: Run Excel Macro

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. 

Novido
Level: Power Up

Re: Run Excel Macro

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.

ludwig
Level: Powered On

Re: Run Excel Macro

Also add my vote. That's an important functionality that we need

Toasteroven
Level: Powered On

Re: Run Excel Macro

It has been two and a half years, any update???

StepanResl
Level: Powered On

Re: Run Excel Macro

Please, we really need it. 

GrahamTuffin
Level: Power Up

Re: Run Excel Macro

Echo all above, this would really help with process improvement and automation

JeffMcCabe
Level: Power Up

Re: Run Excel Macro

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 Smiley Happy

Shaffy80
Level: Powered On

Re: Run Excel Macro

The above can be acheived and automayed by the following steps  , below is the workaround

 

Step 1

In the Macro Enabled Excel Sheet Add another Macro to Save the File as 

ActiveWorkbook.SaveAs Filename:= _
"filename" _
, FileFormat:=xlOpenXMLWorkbook, CreateBackup:=True

 

This will save the file as a Non Macro Excel File on a Sharepoint or Onedrive Site

 

Step 2

 

Use a Power Shell Query to update the Macro enable Excel file and save on 

 

Step 3

 

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.

 

Thanks.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fourthImage

Australia Summit

Travel to Melbourne and network with thousands of peers!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 281 members 4,319 guests
Please welcome our newest community members: