A
Andy
I've got both parts, but can't get them into one macro.
1st: This macro inserts an AutoNumLgl field at exactly where my
insertion point is, then consecutively numbers each paragrph when I
run the macro.
(I assigned it to Alt N.)
Sub AutoNumAltN()
'
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty,
Text:= _
"AUTONUMLGL \e ", PreserveFormatting:=False
End Sub
2nd: This macro numbers the beginning of a Header at the Start Point I
define, i.e. 29. (I assigned it to Alt 6.)
Sub AutoNumAt_Alt6()
'
Dim bText
bText = InputBox("Start At:")
With ListGalleries(wdNumberGallery).ListTemplates(1).ListLevels(1)
.NumberFormat = "%1"
.TrailingCharacter = wdTrailingTab
.NumberStyle = wdListNumberStyleArabic
.NumberPosition = InchesToPoints(0.25)
.Alignment = wdListLevelAlignLeft
.TextPosition = InchesToPoints(0.5)
.TabPosition = InchesToPoints(0.5)
.ResetOnHigher = 0
.StartAt = bText
.LinkedStyle = ""
End With
ListGalleries(wdNumberGallery).ListTemplates(1).Name = ""
Selection.Range.ListFormat.ApplyListTemplate
ListTemplate:=ListGalleries( _
wdNumberGallery).ListTemplates(1),
ContinuePreviousList:=False, ApplyTo:= _
wdListApplyToWholeList,
DefaultListBehavior:=wdWord10ListBehavior
End Sub
Now - could anyone out there give me the macro that will allow me to
number consecutive paragraphs, from within the paragraph (not in front
of the header) at the start # I define? A combination of these two.
Please?
1st: This macro inserts an AutoNumLgl field at exactly where my
insertion point is, then consecutively numbers each paragrph when I
run the macro.
(I assigned it to Alt N.)
Sub AutoNumAltN()
'
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty,
Text:= _
"AUTONUMLGL \e ", PreserveFormatting:=False
End Sub
2nd: This macro numbers the beginning of a Header at the Start Point I
define, i.e. 29. (I assigned it to Alt 6.)
Sub AutoNumAt_Alt6()
'
Dim bText
bText = InputBox("Start At:")
With ListGalleries(wdNumberGallery).ListTemplates(1).ListLevels(1)
.NumberFormat = "%1"
.TrailingCharacter = wdTrailingTab
.NumberStyle = wdListNumberStyleArabic
.NumberPosition = InchesToPoints(0.25)
.Alignment = wdListLevelAlignLeft
.TextPosition = InchesToPoints(0.5)
.TabPosition = InchesToPoints(0.5)
.ResetOnHigher = 0
.StartAt = bText
.LinkedStyle = ""
End With
ListGalleries(wdNumberGallery).ListTemplates(1).Name = ""
Selection.Range.ListFormat.ApplyListTemplate
ListTemplate:=ListGalleries( _
wdNumberGallery).ListTemplates(1),
ContinuePreviousList:=False, ApplyTo:= _
wdListApplyToWholeList,
DefaultListBehavior:=wdWord10ListBehavior
End Sub
Now - could anyone out there give me the macro that will allow me to
number consecutive paragraphs, from within the paragraph (not in front
of the header) at the start # I define? A combination of these two.
Please?