Forum Discussion

Jay_Cous's avatar
Jay_Cous
Copper Contributor
May 04, 2022

Multiple List with Check Boxes

Would like to add a list with check boxes to a table in word.  Users should be able to select more than one item from the List.  Is this possible?

 

  • Jay_Cous To do it actually in the document, you would need to use an ActiveX ListBox that can be inserted via the Legacy Forms in the Controls section of the Developer tab of the ribbon.

    with its ListStyle property set to 1 - frmListStyleOption and the MultiSelect property set to frmMultiSelectMulti.

     

    However, depending upon what you want to do with the selected items, using an ActiveX checkbox will probably not be satisfactory and it will almost certainly be better to make use of a UserForm.

    • Jay_Cous's avatar
      Jay_Cous
      Copper Contributor

      Doug_Robbins_Word_MVP 

       

      Hello Doug.  Thanks for sending me that info.  Think it will work.  Could change the properties as per your screen shot however, I end up with a blank box.  How do I put Items in that box?  Thanks.

    • Jay_Cous's avatar
      Jay_Cous
      Copper Contributor
      How did you get Item 3, 4, 5, etc to appear in the box?
      • Jay_Cous Save the document as a Macro Enabled Template (*.dotm) and in the ThisDocument object, set up the following code

         

        Private Sub Document_New()
        Dim i As Long
        With ListBox1
             .Clear
             For i = 1 To 10
                  .AddItem "Item " & i
             Next i
        End With
        End Sub

Resources