-
Simple Combo Box Query
Having much trouble acheiving simple population of Combo Box in Word:
Open word, switch to design mode, add Combo box. Add code:
Private Sub Document_Open()
ComboBox1.Clear
ComboBox1.AddItem "A"
ComboBox1.AddItem "B"
ComboBox1.AddItem "C"
End Sub
I then press the 'design mode' button again (to come out of editing) and save.
Upon re-opening the document I am always dropped right back into design mode and the combobox is empty :cry:.
Why am I always dumped back into design mode, the finished doc should just appear as a normal operational doc?! Why is the combo box still empty?!
Ive copied a number of guides but just cant find out where Im going wrong :(.
Many thanks for any tips!
Jez
Edit: Ive just tried saving the file as read only, but the doc still comes up in design mode and it lets you modify the doc at will...?
-
How/Where have you got the combobox?
From the looks of things its not in a user form, so how have you got it?
Maybe this is where the problem lies, either that or it doesn't like the way you are filling the combo/time when you are filling the combo.
Vince