Linking a listtemplate to Heading 2 in combination with a combobox

Discussion in 'Word VBA' started by Mathijs, May 13, 2014.

  1. Mathijs

    Mathijs Guest

    Hello

    I hope somebody can help me the following issue.

    I have a piece of code which works on Word 2003 but needs to be updated to Word 2003. It uses a combobox to set a piece of format of a document which is filled from the database. It works perfectly on Word 2003.

    Also a strange thing is that i can't find "NovayHeadingnum" referenced anywhere but in the code below.

    The code is quite large so i only copied the code that is relevant to this problem:

    Public appdoc as Document

    With cbxHeadingNrs
    .AddItem "1, 2, 3"
    .AddItem "A, B, C"
    .AddItem "I, II, III"
    End With

    Select Case frmDecisions.cbxHeadingNrs.ListIndex
    Case 0: 'No change needed
    Case 1: appdoc.ListTemplates("NovayHeadingnum").ListLevels(2).NumberStyle = wdListNumberStyleUppercaseLetter
    Case 2: appdoc.ListTemplates("NovayHeadingnum").ListLevels(2).NumberStyle = wdListNumberStyleUppercaseRoman
    End Select

    Thanks in advance.
     
    Mathijs, May 13, 2014
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. JGM

    ListTemplate issues

    JGM, Dec 19, 2003, in forum: Word VBA
    Replies:
    7
    Views:
    204
  2. Chuck

    ListTemplate index - how to get?

    Chuck, Aug 26, 2004, in forum: Word VBA
    Replies:
    1
    Views:
    287
    Chad DeMeyer
    Aug 26, 2004
  3. JustLearning

    Determining the Font in a listtemplate

    JustLearning, Jun 28, 2005, in forum: Word VBA
    Replies:
    1
    Views:
    221
    Jean-Guy Marcil
    Jun 28, 2005
  4. Warren Lane (MSCE, CCNA)

    How to find ListTemplate number in listgalleries object

    Warren Lane (MSCE, CCNA), Aug 23, 2006, in forum: Word VBA
    Replies:
    1
    Views:
    229
    Jean-Guy Marcil
    Aug 24, 2006
  5. andreas
    Replies:
    6
    Views:
    361
    andreas
    Jan 3, 2007
  6. jerem
    Replies:
    6
    Views:
    194
    Shauna Kelly
    Aug 23, 2007
  7. Wanna Learn

    Missing ComboBox Combination

    Wanna Learn, Sep 7, 2007, in forum: Word VBA
    Replies:
    2
    Views:
    136
    Wanna Learn
    Sep 10, 2007
  8. Associates

    issue with defining ListTemplate

    Associates, May 6, 2009, in forum: Word VBA
    Replies:
    0
    Views:
    152
    Associates
    May 6, 2009
Loading...