Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2005

Tip: Looking for answers? Try searching our database.

pause updates to window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mansky99 - 02 Aug 2005 22:24 GMT
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
Pat Garard - 02 Aug 2005 22:52 GMT
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).
Signature

Regards,
Pat Garard
Melbourne, Australia
_______________________

> Hi ,
>  What command(s) to I use to pause output written to the ActiveWindow while
[quoted text clipped - 6 lines]
>
> Ed
mansky99 - 02 Aug 2005 23:21 GMT
Thanks! Exactly what I was looking for.

> g'Day,
>
[quoted text clipped - 22 lines]
> >
> > Ed
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.