Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Im trying to create a form using the control box, but I don't know how to
populate the comboBox in word. |
#2
![]() |
|||
|
|||
![]()
On Wed, 9 Nov 2005 20:33:02 -0800, "omolano"
wrote: Im trying to create a form using the control box, but I don't know how to populate the comboBox in word. You have to write VBA (macro) code in the Document_New and Document_Open procedures. The simplest method, if the contents of the list will always be the same, is to use something like Private Sub Document_New() With ComboBox1 .AddItem "one" .AddItem "two" ' etc. .ListIndex = 0 End With End Sub You'd need the same thing in Document_Open, because the combo box doesn't store the list in the document file when the document is closed. If you need to get values from a database, see the combo box part of the article at http://msdn.microsoft.com/library/de...dc_activeX.asp -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
apply a template to existing documents | Page Layout | |||
Does Word have Keyboard Merges like Word Perfect does? | Mailmerge | |||
Word2000 letterhead merge | Mailmerge | |||
Underscore (_) will not always display in RTF files (Word 2002). | Microsoft Word Help | |||
Boiletplates from Word Perfect | Microsoft Word Help |