Blog Post

Excel Blog
2 MIN READ

Run your Office Scripts from a workbook button—now on Windows

NancyatMSFT's avatar
NancyatMSFT
Icon for Microsoft rankMicrosoft
Apr 27, 2022

Starting today, you and your colleagues can run Office Scripts in Excel for Windows through pressing a button within the workbook. This highly requested feature expands on our recently introduced script buttons feature, meaning you can run the same button in both your browser and Windows application.  

 

Your feedback helped us make the decision to bring script buttons to Windows: since releasing Office Scripts we have heard your desire for a way to share scripts with colleagues, as well as an ability to use scripts in Excel’s desktop application. We’re grateful for your suggestions, thoughts and comments so far and look forward to hearing from you as you try out this feature! 

 

With script buttons in Windows, we move one step closer towards making Office Scripts an automation solution you can use to manage your workflow anytime and anywhere. While you still need to use Excel on the web to create and manage your scripts, we recognize that Excel users use a variety of platforms to complete their tasks and intend to investigate more cross-platform investments as part of our future work. 

 

How it works 

To create a button in your workbook: 

To run the button in Windows: 

  • Open a file containing the button in Excel on Windows. 
  • Select the button in the workbook. 

Learn more about Office Scripts 

New to Office Scripts and wondering how to get started? Check out these resources created by our team and community:  

Share your feedback  

We'd love to hear your feedback as you try out our feature! Below are a few ways you can connect with our team:  

  • Give us feedback through the Feedback button located in the Help tab. Include the phrase "Office Scripts" to ensure the feedback gets properly routed to our team! 
  • Inform our product direction through joining our focus group on GreenRoom 
  • Ask your scripting questions on StackOverflow using the [office-scripts] tag.    

  

Do you have an idea to make Excel better? We'd love to hear about it. Go to the Excel forum in Microsoft Feedback to submit your idea or vote for other ideas. You can also click the Feedback button in Excel and choose "I have a suggestion".

 

Happy Scripting!  

  

Nancy on behalf of the Office Scripts team 

 

Updated May 16, 2022
Version 4.0

5 Comments

  • Reyemb's avatar
    Reyemb
    Copper Contributor

    Calling javascript functions from vba would be a huge plus from migrating from VBA to javascript slowly

  • Nancy - we would love to be able to run Power Automate flows from that button. Any chance of that happening any time soon?

  • Great new feature 👍 Thanks to the Office scripts team. Hope that in the near future we can create and execute Script directly in Excel for Windows