Hello,
I'm having a problem, how to create a sequencial number field.
this document is an tempate, and i open i want the number to be sequencial.
for example, if i enter in the template three times th sequencial, number
have to be 1, 2 and 3. 1 for the first template opened, 2 for th two template
opened and so on on ........
Any sugestion???
Thanks

Re: SEQ number field?? by Greg

Greg
Thu Oct 20 06:27:45 CDT 2005

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


Re: SEQ number field?? by coelhones85

coelhones85
Thu Oct 20 09:14:01 CDT 2005

Thanks
one part is resolved, buit i have another part that appear!!!
when i put the macro it works well in the first box, but i have another one,
that i want to put the same value that are in the box. how i do this??

thanks for any help.

"Greg" escreveu:

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

Re: SEQ number field?? by Doug

Doug
Thu Oct 20 12:43:45 CDT 2005

Either create a second bookmark in the template and add another line of
code:

ActiveDocument.Bookmarks("newbookmarkname").Range.InsertBefore Format(Order,
"00#")

Or in the location where you want the number to be duplicated, insert a
cross reference to the text of the Order bookmark and add a line

ActiveDocument.Fields.Update

to the code so that it updates the cross reference field to show the value
that was entered into the bookmark


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Bruno Coelho" <coelhones85@hotmail.com.pizzadox> wrote in message
news:2991381E-DB3D-48EE-801A-CD2A1428E3FA@microsoft.com...
> Thanks
> one part is resolved, buit i have another part that appear!!!
> when i put the macro it works well in the first box, but i have another
> one,
> that i want to put the same value that are in the box. how i do this??
>
> thanks for any help.
>
> "Greg" escreveu:
>
>> http://word.mvps.org/FAQs/MacrosVBA/NumberDocs.htm
>>
>>