Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Is there any way to refresh the Power BI using VBA?
I want to refresh the BI every time Refresh excel, but there is no way to download Gatway. I know that VBA can be used to perform tasks in Browsers, such as logging in to social networks or accessing programs that use some script. Is there a way to do this in POWER BI? Is there a script that helps with Refresh and BI publishing?
Solved! Go to Solution.
Just to follow up on @VahidDM suggestion, if you use the Excel file in Onedrive (using the link to the cloud), you can either refresh manually or let Power BI do an hourly automatic refresh. (So no gateway needed).
Source: https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-desktop-file-onedrive
Here is a video from Guy in a Cube which shows how to set up the connection
Proud to be a Super User!
Paul on Linkedin.
Just to follow up on @VahidDM suggestion, if you use the Excel file in Onedrive (using the link to the cloud), you can either refresh manually or let Power BI do an hourly automatic refresh. (So no gateway needed).
Source: https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-desktop-file-onedrive
Here is a video from Guy in a Cube which shows how to set up the connection
Proud to be a Super User!
Paul on Linkedin.
HI @Anonymous
You can not use VBA to refresh your Power BI Dataset/Report.
You can use the Gateway or move your excel file to the SharePoint or Onedrive and then use Power Automate to update/refresh the power BI dataset/report.
Refresh your Power BI dataset using Microsoft Flow
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.