Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2012, 11:12 PM
ubns ubns is offline Update TOC Windows 7 32bit Update TOC Office 2010 32bit
Competent Performer
Update TOC
 
Join Date: Apr 2012
Posts: 177
ubns is on a distinguished road
Default


Hi,

Thanks again for your reply.

Can you please advice how can we add exception (or kind of validation) so that the following code does not throw error - if there is no table of contents in the document.

Sub AutoClose()

ActiveDocument.TablesOfContents(1).Update

End Sub
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Update TOC Organizer does not update some styles Jennifer Murphy Word 10 08-31-2015 08:54 AM
live update gilgold Excel 0 05-26-2010 10:49 AM
VBA to update certain (but not all) fields sparkyrose Word VBA 0 05-20-2010 12:50 PM
Project Auto-Update hB-sys Project 0 04-15-2010 06:46 AM
MS update failure kbstinky Outlook 0 07-18-2009 10:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft