Preventing Excel From Showing What A Macro is Doing As it Runs

cicconmr

Board Regular
Joined
Jul 5, 2011
Messages
90
Hey All,

Not sure how to word this, so if there has been another thread on it I apologize. I'm assuming I'm not the only one to have this problem but in developing Macros for other users I've noticed that when a Macro runs it tends to show the user what is going on.

I.e. I may have an interface sheet which is the only sheet I wish a user to see, however, that information on that home sheet may be derived from other hidden sheets. So as my macro runs that populates a list or sorts a column for the user, Excel flips to the sheet where the Macro is being ran.

It looks sloppy and defeats the purporse of having all my data hidden from the user. How can I make it so that while the Macro runs Excel only views the sheet that I want to user to see?

I hope this made some sense....

Disclaimer: I have made sure that no where in my code does it say Workbook().Range.Select, etc. for the regions I don't want to be viewed.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hello and welcome to the board!

At the start of your macro put:

Code:
Application.ScreenUpdating = False

and at the end put:

Code:
Application.ScreenUpdating = True
 
Upvote 0

Forum statistics

Threads
1,224,565
Messages
6,179,549
Members
452,927
Latest member
rows and columns

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