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 / Run Office Script in E...
Power Automate
Unanswered

Run Office Script in Excel from PAD

(0) ShareShare
ReportReport
Posted on by 24

Hi,

 

How can I run a piece of Office Script in Excel, from PA Desktop?  The closest action I can see is 'Run Excel Macro'.

 

Thanks,

 

Bruce

I have the same question (0)
  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    Is calling to power automate Cloud an option? You can run office scripts from Cloud.

    So one option that i can see is.

    - Run cloud flow > partial desktop flow > cloud flow (here you run office script) > desktop flow (the rest of your flow). 

  • BruceL Profile Picture
    24 on at

    My flow actually started life in the cloud, and then I found out our Jira was an on-prem instance and hidden behind the firewall.  

    I didn't know you could do that, I'll run some experiments and report back.

     

    Thanks!

  • VJR Profile Picture
    7,635 on at

    Hi Bruce,

     

    Currently no direct way of running OfficeScripts in the Desktop flows.

    Either run it via the Cloud flows

    or

    Write a macro similar to the OfficeScript and call it from Run Excel Macro in the Desktop flows.

     

    But be noted that if you have the OfficeScripts for an Excel online version then Excel web cannot be interacted directly from the Desktop Flows.

     

  • CU20080748-1 Profile Picture
    27 on at

    This is very disappointing for those of us who find Desktop much more intuitive and don't need the cloud offerings. But thank you for redirecting my search for a solution!

  • FernandoAg Profile Picture
    2 on at

    One option is to assign a button to the office script, open Excel instance in PAD as "visible" and use PAD UI automation to click the script button.

    Then, you can wait until the Run Status windows says: "succeeded."

    It worked for me.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 241 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 179

#3
Haque Profile Picture

Haque 159

Last 30 days Overall leaderboard