ListBox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do you create a listbox in forms? I have the UserForm macro, but when I
add the listbox... I don't know how to add a list into the form. I am
creating the form in Word's main page, not in the macro section.

Thanks.
Meryl
 
You need to use the .AddItem method to add items into the list.

Check out this free video from my Word AutoForms and Beginning VBA
course. In it I demo ActiveX controls on a page from Lesson 6, and
you'll see how it's done.
http://www.mousetrax.com/training/FreeWordVBAMember01.html

You can find more info on forms here:
http://www.mousetrax.com/techpage.html#autoforms

By the way, use caution when using ActiveX controls (from the Control
Toolbox) in a document, as they will suck up your resources and too
many can easily crash your page, as you will see in the above video
demo.

Dian D. Chapman, Technical Consultant
Microsoft MVP, MOS Certified
Editor/TechTrax Ezine

Free MS Tutorials: http://www.mousetrax.com/techtrax
Free Word eBook: http://www.mousetrax.com/books.html
Optimize your business docs: http://www.mousetrax.com/consulting
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html
 
Back
Top