#1
|
|||
|
|||
Sequential Print Numbering
Hello All,
This is my first time on this site and came across this post. This sounds like something i am trying to do but with one difference, i want to print x amount of the same document but the number should increase for each printed document. One more thing, i want the number to be displayed in 3 different locations on the document. Any help is much appreciated |
#2
|
||||
|
||||
Hi RetailPoint,
As your requirement is significantly different, I've split it off into a new thread. See attached. The document uses a custom document property named 'Counter' to store the numbers. These are displayed in the document via a DOCPROPERTY field. There is one such field in the rectangle on the first page. You can have as many of these fields as and where you need throughout the body of the document. To print the document with the incrementing numbers, press Alt-F8 and select the 'FilePrint' macro.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] Last edited by macropod; 11-23-2013 at 01:11 AM. Reason: Demo doc enhanced to start each print sequence at 1 more than the last sequence |
#3
|
|||
|
|||
Thank you so much for this file, It seems to be working fine when i try from this document. But i am not experienced with docproperty fields, would you be able to give me some more details on this?
Thank you |
#4
|
||||
|
||||
Hi RetailPoint,
What aspects do you want details on?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
I have a form that i created. I want to be able to print the numbers in a few different places on this form. So i wanted to know how to copy the feature you gave me on your document so i can put it on my document.
I was able to create a macro on this form that i have, that will print sequential numbers when printing, i did this a long time ago and don't remember how but now i just want that same sequential number printed in a few different places on the form. |
#6
|
||||
|
||||
Basically, there's just two steps:
First, create the custom document property named 'Counter' to store the numbers. You do this via File > Info > Properties > Advanced properties > Custom. You'll need to give the 'Counter' property a value, say, 0. Second, wherever you want the count to appear, add a DOCPROPERTY field that references the 'Counter' property. You can do this via Insert|Quick Parts|Field, or you can simply press Ctrl-F9 to create a pair of field braces (ie '{}') and type 'DOCPROPERTY Counter' between them, so that you end up with '{DOCPROPERTY Counter}'. In my sample document, you'll note that the numbers always have four digits (unless you're working with larger numbers), with 0 padding. This is handled by a numeric picture switch in the DOCPROPERTY field. To do the same, you'd code your's as '{DOCPROPERTY Counter \# 0000}'. When you're done, press F9 to update the field. You can then copy & paste the field to wherever else you might want it to appear in your document.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
This works as a function but won't print sequentially, what have I missed?
|
#8
|
||||
|
||||
Perhaps you could explain what you mean - the macro works fine when used as per the instructions.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
|||
|
|||
Well the formula creates a number but when I go to print it keeps printing 0001 and won't increase. Do I need to create a macro? I might have missed that part.
|
#10
|
|||
|
|||
When I press alt F8 to run the macro counter it says:
Compile error: Expected: identifier |
#11
|
||||
|
||||
Quote:
The document in the attachment works just fine when the instructions are followed. Likewise, if implemented the same way in your own document, it will continue to work just fine. Since I can't see what you're actually doing, I can't say where the error is. That said, I'm surprised you're getting any kind of error message given the presence of error-handling code in the macro - that suggests you've changed it somehow.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#12
|
|||
|
|||
You're right I somehow changed the macro, I used your example and it worked. Thanks for posting that.
|
#13
|
|||
|
|||
Hi,
Yours attached is working fine but when i print start with 1 end with 20 so it print first print 12 and 13 and start with 1 so i can understand why not print first with 1 instead of 12 |
#14
|
||||
|
||||
That is most likely because your printer is processing the output in the wrong order. You can fix that by turning off background printing (see under File|Options|Advanced>Print>Print in background).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#15
|
|||
|
|||
issue fixed, thank you so much for kind support
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sequential numbering across multiple docs | mslearner | Word | 18 | 06-12-2019 04:00 AM |
How do I do a Sequential Numbering? | gburya | Word VBA | 26 | 07-04-2017 03:29 PM |
Sequential Numbering | jdwoods | Word VBA | 7 | 12-16-2011 05:11 AM |
Sequential Page Numbering of Multiple Word Docs | bobmard | Word | 8 | 08-24-2011 08:51 AM |
Page Numbering in Workbooks & Print set up problem | mdouble588 | Excel | 0 | 05-21-2006 10:29 AM |