Restart Numbering Macro

S

Sal

Hi there,

I have a number of restart numbering macros that I record and I find when
these are run on other machines, I get a run time error. The numbering has a
style associated with it and so should pick up the correct Outline level
associated with the style.

I think I have something missng from my code. Any suggestions welcome.
 
D

Doug Robbins - Word MVP

Your code is missing.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
S

Sal

Oh yes that might help!!!

Here it is....

Sub RestartNumb()
'
' RestartNumb Macro
'
With ListGalleries(wdOutlineNumberGallery).ListTemplates(4).ListLevels(1)
.NumberFormat = "%1."
.TrailingCharacter = wdTrailingTab
.NumberStyle = wdListNumberStyleArabic
.NumberPosition = CentimetersToPoints(0)
.Alignment = wdListLevelAlignLeft
.TextPosition = CentimetersToPoints(1)
.TabPosition = CentimetersToPoints(1)
.ResetOnHigher = 0
.StartAt = 1
With .Font
.Size = 11
.Name = "Arial Mäori"
End With
.LinkedStyle = "List Number"
End With

ListGalleries(wdOutlineNumberGallery).ListTemplates(4).Name = ""
Selection.Range.ListFormat.ApplyListTemplate
ListTemplate:=ListGalleries( _
wdOutlineNumberGallery).ListTemplates(4),
ContinuePreviousList:=False, _
ApplyTo:=wdListApplyToWholeList, DefaultListBehavior:= _
wdWord10ListBehavior
End Sub

Thanks
 

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