![]() |
|
#1
|
||||
|
||||
![]()
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] |
#2
|
|||
|
|||
![]()
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 |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
mslearner | Word | 18 | 06-12-2019 04:00 AM |
![]() |
gburya | Word VBA | 26 | 07-04-2017 03:29 PM |
![]() |
jdwoods | Word VBA | 7 | 12-16-2011 05:11 AM |
![]() |
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 |