Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

SEQ number field??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bruno Coelho - 20 Oct 2005 12:15 GMT
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
Greg - 20 Oct 2005 12:27 GMT
http://word.mvps.org/FAQs/MacrosVBA/NumberDocs.htm
Bruno Coelho - 20 Oct 2005 15:14 GMT
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.

> http://word.mvps.org/FAQs/MacrosVBA/NumberDocs.htm
Doug Robbins - Word MVP - 20 Oct 2005 18:43 GMT
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

Signature

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

> Thanks
> one part is resolved, buit i have another part that appear!!!
[quoted text clipped - 5 lines]
>
>> http://word.mvps.org/FAQs/MacrosVBA/NumberDocs.htm

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.