View Single Post
  #1  
Old 10-12-2002, 06:57
Rick Randall
Guest
 
Posts: n/a
Default Speeding up a macro

Hi---In an effort to speed up a macro I used this:

Code:
   Sub test()

            Optimization = True
            EventsEnabled = False
            ActiveDocument.SaveSettings
            ActiveDocument.PreserveSelection = False

             'does the macro
            
             ActiveDocument.RestoreSettings
             EventsEnabled = True
             Optimization = False
             ActiveWindow.Refresh
             
             End Sub
This speeds it up a lot. However, when I work I use a docker with the Object Manager, and Graphics and Text Styles, open. Each time a drawing is opened during the macro these dockers refresh, slowing down the macro. Can anyone tell me how to turn these dockers off while the macro is running?
Thanks!
Reply With Quote