+ Reply to Thread
Results 1 to 4 of 4

Automatically refresh SharePoint stored Excel Power Query Table when the workbook is close

  1. #1
    Registered User
    Join Date
    08-21-2024
    Location
    Slovakia
    MS-Off Ver
    Office 365
    Posts
    2

    Lightbulb Automatically refresh SharePoint stored Excel Power Query Table when the workbook is close

    Hi everyone,

    I�ve been struggling with automatically refreshing my Power Query Table in an Excel Workbook. I�ve already tried the following, but nothing seems to work:

    1. Creating a Power Automate flow that runs a script intended to refresh all queries. The script works well when triggered manually, but the flow doesn�t, even though it was created correctly.

    2. Using a VBA code scheduled to automatically refresh the data. Again, it works fine when run manually (see the code below).

    Using the Task Scheduler to open the Workbook daily at 8 am. Unfortunately, this also didn�t work.

    I think I�ve run out of my options. Could the issue be because the file is stored on SharePoint?

    The challenge I�m facing is that I receive multiple Excel files every week via email, with the data stored as ranges. I�ve created a flow that saves these files to a designated location and then deletes the emails.

    Afterward, I need to merge and update the downloaded data in my master Excel sheet, which I�ve been doing using Power Query. From this master sheet, I have more than 20 other Excel workbooks created (also connected to the master sheet via Power Query), each tailored to individual employees. These workbooks only include the rows where the employees� names appear, as I need to share the updated data with them separately.

    Do you have any other ideas on how to achieve this? Perhaps even without using Power Query? I�m open to trying anything.

    Thank you so much!

    P.S.: The VBA code goes as follows:
    Please Login or Register  to view this content.
    Last edited by AliGW; 08-21-2024 at 02:59 AM. Reason: Code tags added - please review the forum guidelines.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,099

    Re: Automatically refresh SharePoint stored Excel Power Query Table when the workbook is c

    From what you describe, I'd probably set up a Dataflow that aggregates all the workbooks. Then all your workbooks - including the master if you still need that for an overall view - can collect their needed data from the dataflow. It's pretty easy to use a power automate flow to update a dataflow.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    08-21-2024
    Location
    Slovakia
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Automatically refresh SharePoint stored Excel Power Query Table when the workbook is c

    Hi there, thank you for your response! Could you be a little more specific though, please? And maybe provide me with some steps? I am afraid I am not that advanced when it comes to flows and I would very much appreciate some guidance. Thank you! )

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,099

    Re: Automatically refresh SharePoint stored Excel Power Query Table when the workbook is c

    Do you have a Power BI workspace (for publishing reports)? If not, this won't be an option for you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 08-14-2024, 12:02 PM
  2. Power Query Excel - connect to SharePoint folder
    By rjsnl in forum Excel General
    Replies: 1
    Last Post: 03-05-2024, 05:53 PM
  3. Replies: 5
    Last Post: 10-31-2023, 11:12 AM
  4. Replies: 0
    Last Post: 09-20-2023, 05:00 AM
  5. Refresh a query in an Excel file on a Sharepoint site
    By vancouver_ron in forum Excel General
    Replies: 6
    Last Post: 09-03-2020, 04:44 PM
  6. Excel Power Query Refresh or Access Query - 2nd Query Run is faster
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2020, 10:16 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1