• Msgbox with ListTemplates found (Word XP)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Msgbox with ListTemplates found (Word XP)

    Author
    Topic
    #387611

    I’m looking to create a msgbox which will populate with the current list templates (actual names which have been defined in a macro which creates style and list template with a specific name for both) in the ActiveDocument (could be more than one). Does anyone have any ideas on the code required to perform this action? Thanx for your help, in advance!

    Viewing 0 reply threads
    Author
    Replies
    • #677007

      Can you adapt this to your needs?

      Dim strList As String
      Dim lst As ListTemplate
      strList = “List Templates:”
      For Each lst In ActiveDocument.ListTemplates
      strList = strList & vbCrLf & lst.Name
      Next lst
      MsgBox strList

    Viewing 0 reply threads
    Reply To: Msgbox with ListTemplates found (Word XP)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: