Good day! Welcome to Q&A forum!
I understand you're working on a project to automatically refresh and save an Excel file on SharePoint using Power Automate Cloud Flow, but you're finding that workbook.save() within your Excel script isn't working as expected.
To help you get this working, I need to understand a bit more about your current setup, please answer the following questions:
- Please share the full VBA code you are currently using in your Excel file to 'Refresh All data' and attempt to save? (Please include all lines, not just workbook.save())
- Could you describe the specific steps and actions you are using within your Power Automate Cloud Flow? Specifically, are you using an 'Excel Online (Business)' connector, and if so, what specific action are you trying to use to interact with your Excel file?
- What kind of 'another source' are you pulling data from into this Excel file (e.g., a SharePoint List, a SQL database, another Excel file, a web page)? Also, is this data pulled in using Power Query within Excel, or is it an older type of data connection?
In the meantime, please read this article Refresh an external data connection in Excel - Microsoft Support and Run Office Scripts with Power Automate - Office Scripts | Microsoft Learn to check for any possible core reasons and solutions.
Looking forward to your updates.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.