Christopher Greaves

Contact Me

ON LINE STORE

ON LINE STORE

ON LINE STORE

ON LINE STORE

List Numbering in Microsoft Word

The Nature Of The Problem ; Reading List ; List Numbering Is Broken ; Terminology ; Styles ; What Have We Got Here? ; Isolating A List Template ; Manipulating List Templates ; Review Of Outline Numbered List Templates ; Locating List Templates ; Removing Named List Templates ; What About The Other Two List Galleries? ; Creating Extra List Templates ; List Templates In The Document ; Making A Fresh Start ; Purge List Gallery History ; Ferreting out List Templates ; Review Of List Templates ; An Experiment With Simple Numbered List Templates ; A Built-In Numbered Simple List ; Using Named List Templates ; Steps To Build A Named List Template ; Structures ; Assembling The Style ; Assembling A List Template ; Checking It Out ; Locating A Named List Template ; Deleting List Templates ; Paste To New Document

If you are interested in applications please visit www.VBASolutions.ca .

If you are interested in end-user macros please visit www.TorontoMacros.com .

Locating A Named List Template

Flushed with sucecss we want to manage all our named List Templates.

We know that the List galleries identify only 3x7=21 of the List Templates.

A function to return the index of a Named List Template in the appliaction’s List gallery is of no practical use.

We need a function to return the index of a Named List Template within a document.

Public Function lngLocateNamedListTemplateInDocument(doc As Document, strName As String) As Long

lngLocateNamedListTemplateInDocument = -1 ' default result is failure

Dim lng As Long

For lng = 1 To doc.ListTemplates.Count

If doc.ListTemplates(lng).Name = strName Then

lngLocateNamedListTemplateInDocument = lng

Exit For

Else

End If

Next lng

'Sub TESTlngLocateNamedListTemplateInDocument()

' MsgBox lngLocateNamedListTemplateInDocument(ActiveDocument, "_Bullet")

'End Sub

End Function

Deleting List Templates

Contact Me