Hi Aaron,
See the article “Creating sequentially numbered documents (such as
invoices)†at:
http://word.mvps.org/FAQs/MacrosVBA/NumberDocs.htm
That will show you how to generate a number for each document and you could
have a separate log file with a table in it into which you also insert the
number and the details of the document.
For what you really want to do though, it would be best to use an Access
database as the repositry of the details of each document, writing a new
record to a file for each one and getting hold of the number used in an
autonumber field in the database for the number to be used in the document.
That's of course if you have Access.
--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
aaron said:
I want to create a macro that generates a consecutive number and places it
in the footer and stores it in a separate document log. For instance, if I
write a letter to Jane Doe, the macro assigns it # 001. the Next document
the macro would assign # 002. The macro would have to lookup the last
number assigned and add a 1 to it. I am trying to create a "Master Document
List" which I can quickly search, as well as track document production.