web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to Run addin-macro...
Power Automate
Unanswered

How to Run addin-macro on an Excel by PAD

(0) ShareShare
ReportReport
Posted on by

Hi, 

 

I'd like to run addin-macro on an excel(xlsx) by PAD but failed.

The flow is very simple. open excelfile(xlsx) and run addin-macro in the opened workbook.

 

Is there any way to run it?

 

PAD capture

jeonyo_0-1661202100034.png

 

Running Macro - name is coming from the script header

jeonyo_1-1661202256711.png

Added the adding macro

jeonyo_2-1661202374099.png

jeonyo_3-1661202456659.png

 

Best regards,

 

I have the same question (0)
  • kinuasa Profile Picture
    801 Most Valuable Professional on at

    Hi,
    In the Macro parameter of the "Run Excel Macro" action, you must specify the Add-in name and macro name, such as "MyAddIn.xlam!Sample".

     

    Regards,
    kinuasa

     

    PAD_Run Excel Macro action.jpg

  • IsaacAsher Profile Picture
    16 on at

    Hello, I am trying to do the same thing except my macro is stored in a VSTO add-in for Excel which I created in Visual Studio.  Can anyone tell me what I should use as the "add-in name" in the Macro field for PAD in this case?  I have tried a few guesses and nothing worked; it all seems like the open Excel sheet can't access the macro.  But since I know the add-in is installed, I know the sheet has access.    

  • kinuasa Profile Picture
    801 Most Valuable Professional on at

    Hi,
    I think it depends on the add-in.
    The following pages may be helpful.

     

    [Walkthrough: Call code in a VSTO Add-in from VBA]
    https://docs.microsoft.com/en-us/visualstudio/vsto/walkthrough-calling-code-in-a-vsto-add-in-from-vba?WT.mc_id=M365-MVP-4029057

     

    If there is a button on the Ribbon UI that executes a macro, then UI Automation could be used to control that button.

     

    Regards,
    kinuasa

  • IsaacAsher Profile Picture
    16 on at

    Exactly what I was looking for!  Thank you so very much!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 272 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 147 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard