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 / March 2005

Tip: Looking for answers? Try searching our database.

Unique identifier (uid)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Emily - 10 Mar 2005 20:05 GMT
Is MS Word able to generate unique identifiers (uid) like the AutoNumber in
Access?
Jean-Guy Marcil - 10 Mar 2005 22:47 GMT
Emily was telling us:
Emily nous racontait que :

> Is MS Word able to generate unique identifiers (uid) like the
> AutoNumber in Access?

Strictly speaking, no.

What do you want to do? There are ways of doing something like that, but it
depends on how the document will be used and how/when the number has to be
generated.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Emily - 11 Mar 2005 15:07 GMT
Thanks for your reply.
I'm writing a requirements spec and I would like to identify uniquely the
sentences with a unique number. The number shall be incremented each time it
is inserted. Is MS Word has this feature build in or is it possible to write
a macro for that  ?

Thanks,
Emily

> Emily was telling us:
> Emily nous racontait que :
[quoted text clipped - 7 lines]
> depends on how the document will be used and how/when the number has to be
> generated.
Jean-Guy Marcil - 11 Mar 2005 15:29 GMT
Emily was telling us:
Emily nous racontait que :

> Thanks for your reply.
> I'm writing a requirements spec and I would like to identify uniquely
> the sentences with a unique number. The number shall be incremented
> each time it is inserted. Is MS Word has this feature build in or is
> it possible to write a macro for that  ?

Can't you use paragraph numbering (or LISTNUM fields) for that?

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Emily - 11 Mar 2005 16:27 GMT
The LISTNUM and the SEQ fields seems to not be unique.
It is possible to delete one sentence with its number and then insert a new
one with the same number.

> Emily was telling us:
> Emily nous racontait que :
[quoted text clipped - 6 lines]
>
> Can't you use paragraph numbering (or LISTNUM fields) for that?
Jean-Guy Marcil - 11 Mar 2005 20:28 GMT
Emily was telling us:
Emily nous racontait que :

> The LISTNUM and the SEQ fields seems to not be unique.
> It is possible to delete one sentence with its number and then insert
> a new one with the same number.

In that case, unless you have very heavy event checking code that runs all
the time, and that will fairly complicated to write so that you catch all
possible scenarios, I think you really have to use Access or some other
database system to store the sentences.

I did something similar for a client. An access programmer created the
database, we inserted the sentences in Word with DATABASE fields and used
styles to format the resulting document.

But it is a lot of work.

Still, someone could be along with an alternative... I may be too deep in
the forest to see the trees...
Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

 
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.