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 / Long Documents / November 2003

Tip: Looking for answers? Try searching our database.

Updating TOCs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scott A - 13 Nov 2003 16:38 GMT
I'm updating TOCs using a macro that selects the whole
document, and then executes the update fields command:

   Selection.WholeStory
   Selection.Fields.Update

It seems to work fine, but there may be something out
there that works better.  

Any suggestions?
Margaret Aldis - 13 Nov 2003 17:46 GMT
Hi Scott

Time to start reading the Word VBA Help and looking at the Word VBA
newsgroups, methinks <g>

Try

ActiveDocument.TablesOfContents(1).Update

Signature

Margaret Aldis - Microsoft Word MVP
Syntagma partnership site: http://www.syntagma.co.uk
Word MVP FAQ site: http://www.mvps.org/word

> I'm updating TOCs using a macro that selects the whole
> document, and then executes the update fields command:
[quoted text clipped - 6 lines]
>
> Any suggestions?
Scott A - 14 Nov 2003 14:51 GMT
Margaret -

I wondered why my searches never resulted in any good
matches!!! I didn't see a VBA newsgroup on the
communities.microsoft page, and assumed this was the only
place to post!!!  If you have the location of the Word VBA
page, please pass it along!  

As for Help (sigh), my IT department tells me they don't
have the VBA help files...  I've been able to crack open
VBA help in Access, but haven't been ablt to use the same
tricks with Word.

I've even purchased two of the larger Word manuals (from
Que and O'Reilly), but the support for VBA is scant.

Anyhow, I do apprecate your help - even if you don't see
me posting to the Formatting page as often!

Thanks,

Scott
>-----Original Message-----
>Hi Scott
[quoted text clipped - 18 lines]
>
>.
Suzanne S. Barnhill - 14 Nov 2003 15:24 GMT
There are two ways to approach the newsgroups through Microsoft Communities,
and one of them does not list all the available NGs, though you can access
microsoft.public.word.vba.general by clicking on the Programming link. If
you are limited to Web access, try
http://communities2.microsoft.com/communities/newsgroups/en-us/default.aspx
(click on English, then United States, then Office, then Word).

If you can access NGs using an NNTP newsreader such as Outlook Express, you
will find reading NGs much simpler and more efficient. See
http://insideoe.tomsterdam.com/resources.htm#setupmsnews for more.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Signature

Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


> Margaret -
>
[quoted text clipped - 49 lines]
> >
> >.
Katrina - 14 Nov 2003 17:42 GMT
Just click on the TOC to highlight it, and press "F9" on
your keyboard...updates it automatically and easily!

>-----Original Message-----
>I'm updating TOCs using a macro that selects the whole
[quoted text clipped - 8 lines]
>Any suggestions?
>.
Katrina - 14 Nov 2003 18:05 GMT
For sure -- guess you're programming, not using!  Scratch
my answer!  :-)

>-----Original Message-----
>Just click on the TOC to highlight it, and press "F9" on
[quoted text clipped - 14 lines]
>>
>.
Bob - 16 Nov 2003 04:20 GMT
Call me old-fashioned, but what about right-clicking the table, and select
the update command?

Signature

Bob
*****

> I'm updating TOCs using a macro that selects the whole
> document, and then executes the update fields command:
[quoted text clipped - 6 lines]
>
> Any suggestions?
Jay - 17 Nov 2003 00:34 GMT
> I'm updating TOCs using a macro that selects the whole
> document, and then executes the update fields command:
[quoted text clipped - 6 lines]
>
> Any suggestions?

What I do routinely is
 Type Ctrl-A
 Press the F9 key
No macro needed. Just two key-ins. Whether this "works better" is a matter
of taste.
 
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.