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

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.

Helpful resources


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,320)