Sub UpdateALL() Dim oStory As Object Dim oToc As Object 'exit if no document is open If Documents.Count = 0 Then Exit Sub 'check user wants to update If MsgBox("Do you wish to update fields?", vbYesNo) = vbNo _ Then Exit Sub Application.ScreenUpdating = False For Each oStory In ActiveDocument.StoryRanges oStory.Fields.Update 'update fields in all stories Next oStory For Each oToc In ActiveDocument.TablesOfContents oToc.Update 'update TOC's Next oToc Application.ScreenUpdating = True End Sub
Meta
-
Recent Posts
Archives
- January 2012 (2)
- December 2011 (1)
- November 2011 (1)
- October 2011 (2)
- March 2011 (4)
- February 2011 (4)
- December 2010 (1)
- September 2010 (1)
- August 2010 (2)
- July 2010 (1)
- June 2010 (2)
- May 2010 (4)
- February 2010 (1)
- November 2009 (1)
- October 2009 (3)
- September 2009 (7)
- August 2009 (1)
- December 2008 (3)
- November 2008 (3)
Categories
Tags
10.04 64bit 3610 5310 acer Android aspire boot broadband Digital Radio dropbox E51 error Firefox food waste ftp GRUB GRUB2 Grub 2 hdmi hosting howmany IPv4 ipv6 land fill Lucid Mobile Phone multi screen Nokia Nokia E51 plugin upgrade RebelSim recovery recycle revo Sky TV sound T-Mobile Three Ubuntu VirtualBox waste policy wget wordpress Worpress-
Wiki





