Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having an Excel Macro Process run without Seeing it run 1

Status
Not open for further replies.

dyana

Technical User
Mar 26, 2002
27
US
Does anyone know what VBA code to insert to prevent the visual display of a macro being run?

dyana
 
You can use Application.ScreenUpdating=False to keep the screen from flipping around, if you're selecting sheets, cells, etc. In some instances the process will be faster because the screen doesn't have to be updated. Application.ScreenUpdating=True turns it back on.

 
Just to add a little to what scottrod has advised, I would suggest that it is not always necessary (in fact very rarely) to select cells from a running macro. Values, formatting etc can be assigned without actually selecting cells, or worksheets.

A.C.
 
A.C.

I like your point.

What would be NICE addition, though, would be a couple of examples !!! ...then you get a STAR from me. :)

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top