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 2007

Tip: Looking for answers? Try searching our database.

Disable update of fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Oppenauer - 30 Jun 2007 15:46 GMT
Hello,
i have a large document with about 400 tables.
Now i want to insert some tables by a makro.
The problem is, if i insert a caption with Selection.InsertCaption all
other fields are updated. This takes a long time. Is it possible to
deaktivate the update function and update the fields once, after all tables
are inserted by the makro?

Thanks
Michael
Jay Freedman - 30 Jun 2007 18:50 GMT
At the beginning of your macro, insert the line

  ActiveDocument.Fields.Locked = True

and at the end of the macro insert the lines

  ActiveDocument.Fields.Locked = False
  ActiveDocument.Fields.Update

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

>Hello,
>i have a large document with about 400 tables.
[quoted text clipped - 6 lines]
>Thanks
>Michael
Michael Oppenauer - 02 Jul 2007 19:15 GMT
> At the beginning of your macro, insert the line
>
[quoted text clipped - 4 lines]
>    ActiveDocument.Fields.Locked = False
>    ActiveDocument.Fields.Update

Thanks this was what I looked for.

Michael
 
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.