Article ID: 198561
Article Last Modified on 6/17/2005
253542 WD2000: How to Create a Combo Box Containing More Than 25 Items from an Access Database
212536 OFF2000: How to Run Sample Code from Knowledge Base Articles
Private Sub UserForm_Initialize()
ComboBox1.ColumnCount = 1
'Load data into ComboBox
ComboBox1.List() = Array("Zero", "One", "Two", "Three")
End Sub
and then close the code window.
Private Sub ComboBox1_Change()
ActiveDocument.FormFields("Text1").Result = ComboBox1.Value
End Sub
and then close the code window.Private Sub Cmdclose_Click() Unload Me End Suband then close the code window. Right-click the CommandButton and click Properties on the shortcut menu. On the Alphabetic tab, rename (Name) to Cmdclose, and then rename Caption to Close. Close the CommandButton Properties window.
Sub gocombobox() frmcombo.Show End Sub
Additional query words: vba vbe vb dropdown drop-down
Keywords: kbhowto KB198561