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 / July 2005

Tip: Looking for answers? Try searching our database.

running macro in background

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
EstherH - 31 Jul 2005 18:00 GMT
Hi,

I have a fairly complicated macro that does a lot of text editting. I don't
want to see what is happening as the macro runs (it takes a few seconds). I
would just like to see the end result. So I would like to have the macro run
in the background during execution of the commands and then at the end to
display the entire file as modified.

Is this possible? Would anyone know how to do this?

Thanks in advance for any help.
Anne Troy - 31 Jul 2005 18:24 GMT
Hi, Esther. Generally speaking, you should be able to put the first line of
code near the beginning of your code and the 2nd line of code near the end
of your code. However, to my knowledge, it's not nearly as nice in Word as
it is in Excel.

Application.ScreenUpdating = False
Application.ScreenUpdating = True
*******************
~Anne Troy

www.OfficeArticles.com

> Hi,
>
[quoted text clipped - 7 lines]
>
> Thanks in advance for any help.
EstherH - 31 Jul 2005 18:46 GMT
Thanks loads. It works perfectly.

I knew  it had to be easy. But I didn't think this easy.
Anne Troy - 31 Jul 2005 18:52 GMT
Cool beans. :)
*******************
~Anne Troy

www.OfficeArticles.com

> Thanks loads. It works perfectly.
>
> I knew  it had to be easy. But I didn't think this easy.

Rate this thread:






 
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.