Klaus,
Okay, that's going to work. Wow. I really think this is gonna work out
great, but I got one problem (surprise, surprise). I recorded a macro that
goes to each heading six and inserts a ListNum field before the heading, then
formats it to a white font (so as not to be seen in the document) and then
copied the text. I repeated this process for the rest of the document. I
know I can trim this code down considerably using a Loop function, but I am
not sure how. Any ideas?
Selection.GoTo What:=wdGoToHeading, Which:=wdGoToFirst, Count:=6, name:=""
Selection.GoTo What:=wdGoToHeading, Which:=wdGoToNext, Count:=1, name:=""
Selection.Find.ClearFormatting
With Selection.Find.ParagraphFormat
.SpaceBeforeAuto = False
.SpaceAfterAuto = False
.Alignment = wdAlignParagraphJustify
End With
Selection.Find.ParagraphFormat.Borders.Shadow = False
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"LISTNUM \l 1 \s 0", PreserveFormatting:=False
Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
With Selection.Font
.name = "Times New Roman"
.Size = 11
.Bold = True
.Italic = False
.Underline = wdUnderlineNone
.UnderlineColor = wdColorAutomatic
.StrikeThrough = False
.DoubleStrikeThrough = False
.Outline = False
.Emboss = False
.Shadow = False
.Hidden = False
.SmallCaps = False
.AllCaps = False
.Color = wdColorWhite
.Engrave = False
.Superscript = False
.Subscript = False
.Spacing = 0
.Scaling = 100
.Position = 0
.Kerning = 0
.Animation = wdAnimationNone
End With
Selection.Copy
Selection.GoTo What:=wdGoToHeading, Which:=wdGoToNext, Count:=1, name:=""
Selection.GoTo What:=wdGoToHeading, Which:=wdGoToNext, Count:=1, name:=""
Selection.Find.ClearFormatting
With Selection.Find.ParagraphFormat
.SpaceBeforeAuto = False
.SpaceAfterAuto = False
.Alignment = wdAlignParagraphJustify
End With
Selection.Find.ParagraphFormat.Borders.Shadow = False
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.PasteAndFormat (wdPasteDefault)
Selection.GoTo What:=wdGoToHeading, Which:=wdGoToNext, Count:=1, name:=""
Selection.Find.ClearFormatting
With Selection.Find.ParagraphFormat
.SpaceBeforeAuto = False
.SpaceAfterAuto = False
.Alignment = wdAlignParagraphJustify
End With
Selection.Find.ParagraphFormat.Borders.Shadow = False
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.PasteAndFormat (wdPasteDefault)
Selection.GoTo What:=wdGoToHeading, Which:=wdGoToNext, Count:=1, name:=""
Selection.Find.ClearFormatting
With Selection.Find.ParagraphFormat
.SpaceBeforeAuto = False
.SpaceAfterAuto = False
.Alignment = wdAlignParagraphJustify
End With
Selection.Find.ParagraphFormat.Borders.Shadow = False
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.PasteAndFormat (wdPasteDefault)
End Sub
TIA,
Jason
Klaus Linke said:
[...] I will try that or the ListNum approach.
I think it'll be the easiest method.
Good luck!
Klaus