T
tighe
All,
i have code run a document but it freezes if the document is too large. the
document this code runs on can be anywhere from 200-500 pages. it ssems to
work fine on anything under 300.
i am running this in word 2007 being called from Access 2007.
any advice on making the code better or keep Word from stop responding would
be terrific.
thanks in advance.
Sub bulletFormat()
'
' bulletFormat Macro
'
Dim doc As Word.Document
Dim para As Word.Paragraph
Set doc = ActiveDocument
For Each para In doc.Content.ListParagraphs
para.Range.ListFormat.ApplyListTemplateWithLevel
ListTemplate:= _
ListGalleries(wdBulletGallery).ListTemplates(1),
ContinuePreviousList:= _
False, ApplyTo:=wdListApplyToSelection, DefaultListBehavior:= _
wdWord10ListBehavior
Next
End Sub
i have code run a document but it freezes if the document is too large. the
document this code runs on can be anywhere from 200-500 pages. it ssems to
work fine on anything under 300.
i am running this in word 2007 being called from Access 2007.
any advice on making the code better or keep Word from stop responding would
be terrific.
thanks in advance.
Sub bulletFormat()
'
' bulletFormat Macro
'
Dim doc As Word.Document
Dim para As Word.Paragraph
Set doc = ActiveDocument
For Each para In doc.Content.ListParagraphs
para.Range.ListFormat.ApplyListTemplateWithLevel
ListTemplate:= _
ListGalleries(wdBulletGallery).ListTemplates(1),
ContinuePreviousList:= _
False, ApplyTo:=wdListApplyToSelection, DefaultListBehavior:= _
wdWord10ListBehavior
Next
End Sub