I need to create an invoice with a counter for the invoice number. Program will be opened and closed through out the day and the counter needs to keep up with the number of times the invoice is printed. Can any one give me some tips on just how to do that?
--
No Bush in 2004!!!!!!

Re: Adding a counter in a document by Larry

Larry
Fri Jul 02 22:50:24 CDT 2004

This is a discussion group for helping people with Microsoft Word.
Partisan political messages don't belong here.




Re: Adding a counter in a document by Jezebel

Jezebel
Sat Jul 03 00:04:11 CDT 2004

You need to decide where to store the running count. My preference is a
CustomDocumentProperty in the invoice template, because you can open the
template itself and reset the counter when you need to. Add an AutoNew macro
to the invoice template -- this runs each time a document is created using
that template. Read the Property from the template, add it as a
customproperty to the document, then increment the property and write it
back to the template.

In the body of the invoice, use a DocProperty field to display the value.

No Bush in 2004 indeed! The sooner the world is free of this bastard, the
sooner we can hope for peace and decency.



"Aptiva Dave" <AptivaDave@discussions.microsoft.com> wrote in message
news:4CF999BF-79C7-43C9-8495-505A5077D98D@microsoft.com...
> I need to create an invoice with a counter for the invoice number.
Program will be opened and closed through out the day and the counter needs
to keep up with the number of times the invoice is printed. Can any one
give me some tips on just how to do that?
> --
> No Bush in 2004!!!!!!



Re: Adding a counter in a document by Jonathan

Jonathan
Sat Jul 03 03:54:17 CDT 2004


"Aptiva Dave" <AptivaDave@discussions.microsoft.com> wrote in message
news:4CF999BF-79C7-43C9-8495-505A5077D98D@microsoft.com...
> I need to create an invoice with a counter for the invoice number.
Program will be opened and closed through out the day and the counter needs
to keep up with the number of times the invoice is printed. Can any one
give me some tips on just how to do that?

How to save a document using a filename that gets incremented
by 1 each time if the filename already exists
http://word.mvps.org/FAQs/MacrosVBA/SaveIncrementedFilename.htm


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.713 / Virus Database: 469 - Release Date: 30/06/2004


Re: Adding a counter in a document by Doug

Doug
Sat Jul 03 16:40:29 CDT 2004

See the article "Creating sequentially numbered documents (such as
invoices)" at:

http://word.mvps.org/FAQs/MacrosVBA/NumberDocs.htm


--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
"Aptiva Dave" <AptivaDave@discussions.microsoft.com> wrote in message
news:4CF999BF-79C7-43C9-8495-505A5077D98D@microsoft.com...
> I need to create an invoice with a counter for the invoice number.
Program will be opened and closed through out the day and the counter needs
to keep up with the number of times the invoice is printed. Can any one
give me some tips on just how to do that?
> --