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 / Excel Refresh every mo...
Power Automate
Unanswered

Excel Refresh every morning

(0) ShareShare
ReportReport
Posted on by 108

Hello,

I have created a flow for my excel refresh. 
First i have recored and created a script.
"

Sub RefreshDatasett()
'
' RefreshDatasett Macro
'

'
ActiveWorkbook.RefreshAll
End Sub"

This is my script. 

But when i run script in the power automate flow it is showing me no item.

Sanskruti_0-1696504499460.png


Do you have any idea why i'm getting this error?

Thank you in advance.

Categories:
  • Gematria Profile Picture
    222 on at

    That looks more like a VBA Script/Macro, which is not the scripting that are referred to in this action.

     

    You will need to use TypeScript to create a Script in any Excel workbook using the Code editor located in Excel -> Automate tab

     

    Gematria_0-1696505501605.png

    Unfortunately, running a Refresh All function through Power Automate is not really supported. Most Queries cannot be refreshed through Excel Online either, so you would need to use Power Automate Desktop to initiate the Query refresh and a Cloud Flow to trigger the Desktop Flow each morning.

  • Sanskruti Profile Picture
    108 on at

    Thank you for replying.
    But i dont have automate tab.

    Sanskruti_0-1696505918295.png

    Is there any other way i can refresh my dataset in excel using web power automate only?


    Thank you.

  • Gematria Profile Picture
    222 on at

    Can you see it in Options and add it to the ribbon there?

    Gematria_0-1696506055744.png

     

    The only Data sources that Excel online supports for Queries are these:

    Gematria_1-1696506140178.png

     

    https://support.microsoft.com/en-au/office/power-query-data-sources-in-excel-versions-e9332067-8e49-46fc-97ff-f2e1bfa0cb16

     

    So in short, if your Query only uses data from inside the specific Excel file, then you should be able to achieve it through a Cloud Flow. However, if it uses other Data sources, then it is not possible.

     

    A Script to update Queries in the specific Workbook would look something like:

     
    function main(workbook: ExcelScript.Workbook) {
    // Refresh all data connections
    workbook.refreshAllDataConnections();
    }

     

  • Sanskruti Profile Picture
    108 on at

    Sanskruti_0-1696508255176.png

    Unfortunately i dont have automate tab option. 

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard