Unique ID to WORD2007 sections

G

Ganish

Hello,
I am using WORD2007 to create large requirements documents. I have to
allow the documents users fixed ID to every requirement. The section
numbers will change whenever I edit the documents (and they are
changed, and changed, and changed...) so I have to add a macro, or VBA
application, that will allocate a unique ID from an up-counter
whenever i activate it. The order of the sequence is not mandatory,
but it is important that the numbers will no repeast, even if a number
is deleted.

can anyone help in this?

regards

Ganish
 
G

Ganish

Additionally: The feature shouldbe internal to the OWRD2007 document,
because I work both on line and off line.
 
D

Doug Robbins - Word MVP

It is not clear where the number actually is? Is it the filename of the
document? How about appending a savedate field to what ever the number is?

--
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, originally posted via msnews.microsoft.com
 
G

Ganish

Doug, thanks. Actually, it should apear in the section header (fo
instance: 3.2.4 High Frequency Attenuation @@R15@@
Where:
3.2.4 - WORD automated number
High frequency Attenuation - paragraph header
@@R0015@@ - example for the paragraph UID.

Time stamp can be a great idea. How can I create a macro that wil
place it in predefined format?

It is not clear where the number actually is? Is it the filename o
the
 
D

Doug Robbins - Word MVP

Assuming that these are individual documents, you could just use a {
savedate \@ "yyyymmdd-hh:MM:ss" } field with a formatting switch

--
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, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top