Run Macros while staying on a Main page

dshuman

New Member
Joined
Mar 19, 2009
Messages
4
I have a tool created using Macros and importing data from a database. There are probably 15 tabs that query and analyze data, but they all feed to a Main tab. When I press the button on the main page it goes to each tab to refresh the query and other activities, then returns to the main page to show the data I want.

Is there a way to make this Macro do all of this while staying on the Main page? Ideally I would like to hide all the other pages, and while the macros are running the only thing you see is the main page.

One step further - how would I add a status bar to indicate how much of the macro is complete (takes about 2 minutes to run)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Welcome to MrExcel Board...
add this to the start of your macro

Application.ScreenUpdating = False

and then just before the end sub add

Application.ScreenUpdating = True

do a search on this forum for "Progress Bar" as there are some great suggestions
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top