One Table of Contents - Multiple Documents

T

Tywardreath

Hi

Almost already posted this question on the word.docmanagement NG, but it is
buried pretty deeply.

I have used instructions for creating a table of contents across multiple
documents as suggested from:
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=148

and the solution worked really well for a "fresh/brand new" set of
documents, and TOC page.

However, if I added an extra document to be included in the TOC, and re-ran
the macro in the TOC document, I get a debugging error on the line:

Set oDoc = Documents.Open(FileName:=strCode)

I've tried different ways to get around the problem, but no luck. On the off
chance I thought that previous page numbering may have made it full over, so
even if I change all the page numbers in the documents back to 1 - the macro
still falls over.

Really appreciate help - I desperately need it.

Cheers, Ty.
 
J

Jean-Guy Marcil

Tywardreath was telling us:
Tywardreath nous racontait que :
Hi

Almost already posted this question on the word.docmanagement NG, but
it is buried pretty deeply.

I have used instructions for creating a table of contents across
multiple documents as suggested from:
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=148

and the solution worked really well for a "fresh/brand new" set of
documents, and TOC page.

However, if I added an extra document to be included in the TOC, and
re-ran the macro in the TOC document, I get a debugging error on the
line:

Set oDoc = Documents.Open(FileName:=strCode)

Can you post the first RD field codes that you used and the one you added to
the list (The one causing you grief...)?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top