Outline numbering 2nd level lost

J

Jean Pereira

We have just upgraded to Word XP from 2000.

I created a style containing six levels of legal style
numbering which you could change levels using the
tab/shift+tab keys called

When we open in XP any doc created in 2000 containing this
style, only paragraphs with the first level number shows
up. All other paragraphs which had 2nd to 6th levels
numbers originally, show up as that style but without any
number against them.

You have to have a copy of what level number was against
each para and apply the style again and then tab to the
relevant level.

We have thousands of docs with this in so going into every
one and doing this is not an option.

Any ideas?
 
B

Bruce Brown

Cross your fingers, Jean. There *may* be a simple fix with VBA!

Sub TestEachParagraphsLevel ()
Dim P As Paragraph
For Each P In Selection.Range.Paragraphs
P.Range.Select
MsgBox "Level = " & P.Range.ListFormat.ListLevelNumber _
, , "List type = " & P.Range.ListFormat.ListType
Next
End SUb

First, open up a doc in XP. Select a bunch of paragraphs with the
numbers missing and run the test macro above.

If the macro is able to identify the level of each paragraph in the
selection regardless of the missing number, you've hit the jackpot and
we can proceed from there. (For each paragraph numbered with your
style the List Number should be 4.)

No luck? Then go back and open up the original doc in Word 2000.
Select the same bunch of paragraphs and run the macro again. This time
there should be no trouble getting the level number.

As long as the level number for each paragraph numbered in your style
can be determined, VBA can restore the numbers. It would be much
easier working only in XP, but if you have to open up the original
first, so what?

Assuming that you open up and use only one document at a time, instead
of converting them all in one day, you should be all right.

No guarantees or promises, mind you. But if the test macro above
succeeds on either the orig or the XP version, you're looking at the
light at the end of the tunnel. - Bruce
 

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