jjkh58
New Member
- Joined
- Apr 21, 2021
- Messages
- 8
- Office Version
- 365
- 2013
- 2011
- 2010
- Platform
- Windows
- Mobile
- Web
Hi guys,
I have a report that needs to be refreshed twice before I can work on other stuff.
So what I usually do is go to Data - > Refresh All Then once the first refresh is completed, I press Ctrl+Alt+F5 to refresh for the second time.
Its refreshing multiple power queries with multiple tabs. The current code that I'm using but not working are below.
All other execution must be stopped before the first refresh is completed and needs to continue for the second refresh. Again, all other execution must be stopped until the second refresh finishes. Please help! Cheers.
Sheets("Sales Data").Select
Activeworksheets.RefreshAll
DoEvents
Sheets("GP by Department").Select
Activeworksheets.RefreshAll
DoEvents
I have a report that needs to be refreshed twice before I can work on other stuff.
So what I usually do is go to Data - > Refresh All Then once the first refresh is completed, I press Ctrl+Alt+F5 to refresh for the second time.
Its refreshing multiple power queries with multiple tabs. The current code that I'm using but not working are below.
All other execution must be stopped before the first refresh is completed and needs to continue for the second refresh. Again, all other execution must be stopped until the second refresh finishes. Please help! Cheers.
Sheets("Sales Data").Select
Activeworksheets.RefreshAll
DoEvents
Sheets("GP by Department").Select
Activeworksheets.RefreshAll
DoEvents