|
-
May 23rd, 2004, 08:46 AM
#1
Thread Starter
New Member
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 .
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...?
Last edited by Jezza101; May 23rd, 2004 at 09:10 AM.
-
May 25th, 2004, 05:07 AM
#2
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
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|