View Single Post
  #6   Report Post  
Posted to microsoft.public.word.pagelayout
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Show Folder index list in word document

It can only be updated by deleting the existing list and running the macro
again. How automatic do you need to make it?

While you could create a macro that ran automatically when the document was
opened, there must be some way of identifying the location of the existing
list so that the macro can delete it and replace it.

One way would be to have the list created inside a one cell table (without
borders if desired)

If that table was the first table in the document, adding the following code
at the beginning of the macro would delete the contents of that table and
replace it with an updated list

ActiveDocument.Tables(1).Cell(1, 1).Select
Selection.Delete

I would recommend that you save this document as a template, and create the
macro in the template and change its name to Sub Autonew()

Then when you create a document from that template, the list will be updated
each time.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"lorne17" wrote in message
...

Ok,

This worked great. But is there a way to have this list updated
automatically? It is really what we're needing.

Thanks,

Lorne

Doug Robbins - Word MVP;2738261 Wrote:
See the article "What do I do with macros sent to me by other newsgroup

readers to help me out?" at:

http://www.word.mvps.org/FAQs/Macros...eateAMacro.htm

Reur PS, it means that you should reply to the newsgroup with any
additional
questions UNLESS you wish to engage me to provide assistance to you
personally on a pay for hire basis. My contributions to the newsgroups
are
free.






--
lorne17