I have a test procedure document that looks something like this:
Code:
1 Test name
1.1 Case A, Test step 1
1.2 Case A, Test step 2
1.3 Case B, Test step 1
1.4 Case B, Test step 2
1.5 Test step 3
I have a little user form that allows the user to select "Case A" or "Case B". I want to then hide or show the applicable test steps. I can do this with something like Bookmarks("Case A").Range.Font.Hidden = True, etc. However, hiding the text of the headings does not cause the heading numbers to re-sequence. So if I choose "Case A", the document looks like
Code:
1 Test name
1.1 Case A, Test step 1
1.2 Case A, Test step 2
1.5 Test step 3
I want "Test step 3" to be number 1.3. Is there a simple way to accomplish this? This happens in many locations throughout the document, so I'd rather not have to do a bunch of somersaults with manually changing/re-sequencing the heading numbers all over.