Results 1 to 5 of 5
  1. #1
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts

    form controls (2000)

    Hi, I am new to putting list box and combos etc on a word doc. How once on the doc do I populate a list box with my needed selections?

    Thanks

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

    Re: form controls (2000)

    Do you put the controls in the body of the document, or in a userform in the Visual Basic Editor?

  3. #3
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: form controls (2000)

    Thanks Hans, within the body of the document.

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

    Re: form controls (2000)

    You can use code in the Document_Open event procedure (in the ThisDocument module), for example:

    Private Sub Document_Open()
    With Me.ComboBox1
    .AddItem "This"
    .AddItem "That"
    .AddItem "Other"
    End With
    End Sub

  5. #5
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: form controls (2000)

    Thanks Again Hans

    Darren.

Posting Permissions

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