VBA equivalence tp to DOS "echo off"

B

Brian

How can I stop an Excel macro from displaying the intermediate images on the
screen until after it has finished. I guess I'm looking for the VBA
equivalence to "echo off" as in DOS. Your help will be much appreciated.

Brian
 
P

PCLIVE

Maybe something like:

Application.ScreenUpdating = False
<Yourcode>
Application.ScreenUpdating = True
 
G

Guest

To suppress both messages and screen updates you could use the following:

With Application
.DisplayAlerts = False
.ScreenUpdating = False
.StatusBar = "Processing your request, please wait..."
End With

your code goes here

And then reset the environment with the following:

With Application
.DisplayAlerts = True
.ScreenUpdating = True
.StatusBar = False
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top