Hello, I am working on a combo box, Visual Basic 6.5 on Microsoft Word 2003. When I put in the text for the combo box, it loads fine. I save, close the document. When I re-open the file, everything in the drop box is gone. What am I doing wrong?
MichellePV 0
Newbie Poster
Recommended Answers
Jump to PostWhere does the "text" that populates the combo box come from? Is it from a database or another text file?
Jump to PostYou can add the following code directly to the Document_Open event or you can add it in a stand alone module and call the sub when the document opens.
With ActiveDocument.ComboBox1 .Clear .AddItem "January" .AddItem "February" .AddItem "March" 'And so on...... End With
You can also try …
All 6 Replies
AndreRet 526
Senior Poster
MichellePV 0
Newbie Poster
MichellePV 0
Newbie Poster
AndreRet 526
Senior Poster
MichellePV 0
Newbie Poster
AndreRet 526
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.