pause updates to window

M

mansky99

Hi ,
What command(s) to I use to pause output written to the ActiveWindow while
my VBA code runs on the ActiveDocument ? I am trying to avoid the end User
from seeing each update that is preformed on the ActiveDocument. I would like
to have my code run and complete it's work, then have the ActiveWindow
updated all at once. Can I do this ?


Thanks!

Ed
 
P

Pat Garard

g'Day,

Try::-

Sub DoSomething()
Application.ScreenUpdating = False
:
'Something happens here, but changes are not displayed
:
Application.ScreenUpdating = True
End Sub

Word remains visible, but no Screen Updating occurs.
You must also arrange to set ScreenUpdating to True
in the event of the Macro halting due to an Error (i.e. in
your Error Trap).
 
M

mansky99

Thanks! Exactly what I was looking for.

Pat Garard said:
g'Day,

Try::-

Sub DoSomething()
Application.ScreenUpdating = False
:
'Something happens here, but changes are not displayed
:
Application.ScreenUpdating = True
End Sub

Word remains visible, but no Screen Updating occurs.
You must also arrange to set ScreenUpdating to True
in the event of the Macro halting due to an Error (i.e. in
your Error Trap).
--
Regards,
Pat Garard
Melbourne, Australia
_______________________
 

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