View Single Post
 
Old 05-13-2009, 12:10 AM
stijnos stijnos is offline Windows XP Office 2003
Novice
 
Join Date: May 2009
Location: Netherlands
Posts: 1
stijnos is on a distinguished road
Question automatic requirement numbering with change detection

I would like to add an automatic requirement numbering to my word document.
We already have a Macro to add automatic numbering.
This macro just searches for "REQ_?" and replaces the question mark with a unique number.
Now we would like to change this macro.

- every requirement should have a unique number.
- if a new requirement is added, it should have the number of the previous requirement foloowed bij a . and a new number. (so REQ_1, REQ_2, REQ_2.1 (new), REQ_3)
this is not a big problem to make BUT,
- When a requirement is changed it should get a "-" with a unique change number. (so when requirement 1 changes it should be formated as REQ_1-1, and when the new requirement 2.1 is changed it should get the format REQ_2.1-1

For this last problem I should have a way to detect if a block of text is changed between to requirements.
All the requirements should also be added to a cross reference list if possible)

Is there a standard word functionality for this complex numbering method, or is VBA the only way. (no problem, but don`t know how to detect changes).

Who can help me a little further
Thanks,

Stijn
Reply With Quote