-----Original Message-----
Klaus - Don't know what you're doing or not doing, but try this simple
code and see if it doesn't work for you.
To get what Ilene wanted . . .
1.
A. (1) Text in Heading 3 style.
.. . . you'd have to put in TWO hidden paragraphs that would look like
this in the ShowAll view:
A.
(1)
Text in Heading 3 style.
That's because the Heading 3 number doesn't display after a hidden
paragraph, so the actual number must be included as text in Body Text
style, followed by another hidden paragraph mark, followed by the text
in Heading 3 style. If that sounds like a pain where the moon doesn't
shine, it is.
Sub DoAHiddenParagraph()
If Not Selection.Type = wdSelectionIP Then
MsgBox "Can't do Hidden Paragraph with text selected.", , "Take
Off Selection"
Exit Sub
End If
'CHECK ORIGINAL VIEW
Application.ScreenUpdating = False
Dim ShwAll As Boolean
ShwAll = ActiveWindow.View.ShowAll
ActiveWindow.View.ShowAll = True
With Selection
'PUT IN HARD RETURN
.TypeParagraph
'APPLY BODY TEXT STYLE TO NEW LINE
.Style = ActiveDocument.Styles("Body Text")
'GO BACK TO PARAGRAPH MARK AND SELECT IT
.MoveLeft unit:=wdCharacter, Count:=1
.MoveRight unit:=wdCharacter, Count:=1, Extend:=wdExtend
'HIDE, COLOR PARAGRAPH MARK
With .Font
.Hidden = True
.ColorIndex = wdBlue
End With
'GO BACK TO NEW LINE
..MoveRight wdWord
'TYPE IN PERIOD AND TWO SPACES
..TypeText Text:=". "
End With
'RESTORE ORIGINAL VIEW
ActiveWindow.View.ShowAll = ShwAll
End Sub
like Bruce...
Guess I'll have to get myself a brain, too ;-)
BTW, your second method (hidden paragraph mark) doesn't work for me:
The numbering of the "appended" paragraph vanishes (in Word2000).
Did you mean to use a hidden paragraph mark *and* a ListNum field?
Or has this bug been fixed?
Regards,
Klaus