Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Apr 2003
    Location
    Calgary, Alberta
    Posts
    208
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Msgbox with ListTemplates found (Word XP)

    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!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Msgbox with ListTemplates found (Word XP)

    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

  3. #3
    3 Star Lounger
    Join Date
    Apr 2003
    Location
    Calgary, Alberta
    Posts
    208
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Msgbox with ListTemplates found (Word XP)

    Beautiful Hans... I love you... thanx... trish

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •