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 get output from...
Power Automate
Answered

how to get output from Macro to be input to Email in PAD flow

(0) ShareShare
ReportReport
Posted on by 79

Hi,

 

I have this PAD flow

how do i get the Run.NET script to have the output of the Macro message?

i think my set variable is incorrect?

how do i get the from my vba script this variable macro1_output_msg out to my PAD email?

kindly help with the syntax. Thanks

Zy_Sin_0-1713260898602.png

Zy_Sin_1-1713260978129.png

 

Zy_Sin_3-1713261046121.png

this is my VBA script

Zy_Sin_4-1713261090478.png

 

 

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Zy_Sin 

     

    whatever you are passing to input to Run .Net script action is correct >

     

    Bit confused on how you are getting the output - macro1_output_msg out from  run macro ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • Zy_Sin Profile Picture
    79 on at

    Hi @Nived_Nambiar 

     

    to simplify the above

    i have a macro script and i need to get the output from macro run as a input in the Email. but the PAD Run Excel macro only allow us a input into macro but not output from macro

    Zy_Sin_1-1713324298882.png

     

    Zy_Sin_0-1713324137167.png

     

    the Run Excel macro ;argOutput is a input into macro which i do not need to, is there a way to get the output "Something vomit" out and to be inside my Email {0}?

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Zy_Sin 

     

    Run Macro action does not give you output value coming out of that macro, You can only pass values to macro via run macro but cannot take any output values from it. Other way would be to write the out argument/output from macro run in a file and make the bot to read from it.

     

    Go through this article for better reference 

    https://www.samurai-emblem.com/2023/04/07/power-automate-desktop-action-run-macro-excel/#google_vignette

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • Zy_Sin Profile Picture
    79 on at

    Thanks @Nived_Nambiar 

     

    That's what i did.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard