running macros silently
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Word Training and help » Running macros 'silently'

Running macros 'silently'

resolvedResolved · Low Priority · Version 2007

replyReply Wed 15 Dec 2010, 15:50Delegate James said...

James has attended:
Excel Advanced course

Running macros 'silently'

Although I learned of this trick in an Excel course, I'm posting it in the Word forum, as it's just as relevant to Word.

At a recent Excel 2007 Advanced course, the instructor (I think it was Peter) showed an instruction that can be added to a macro so that it doesn't display the drawing of actions on screen, but instead simply generates the end result.

But I can't find the instruction! Can someone please post this command? Thanks.

James

For upcoming training course dates see: Pricing & availability

replyReply Wed 15 Dec 2010, 17:32Trainer Anthony said...

RE: Running macros 'silently'

Hi James, thanks for your query. The line of code is:

Application.Screenupdating = False

Best practice is to switch it back on again at the end of the code:

Application.Screenupdating = True

Hope this helps,

Anthony

 

Please browse our web site to find out more about
word course and other Microsoft training courses.

Word tip:

Create random text

If you want to add random text in Word to see how formatting would look on a piece of text for exmple, type in :

=rand(2)

Depending on the version of Word you will get different text. The 2 indicates the number of paragraphs that appear

View all Word hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard