web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard