Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Triggering the macros when creating word document



Using Microsoft Flow I create word documents into a SharePoint document library based off a word template I created. The template contains 3 macros, 1. to format text, 2. to insert an online pic, 3. to send an email of the doc.


The problem I have, is I need a way to automatically trigger the macros to run when the document is created. Any ideas?


Currently I have set the macros to the Open() function which runs when the document is opened, but this isn't good enough. And I have tried the New() function, but no luck.


*The word documents are stored inside SharePoint Online document library.


Thank you.

Super User
Super User

Re: Triggering the macros when creating word document

Hi @tech18 


I just stumbled on your ticket. It's been a while since you submitted it.


I don't think this is possible in Power Automate.


Were you able to fix this? If so, can you please share so that we can all learn from it?


If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.


Helpful resources


Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (10,272)