Inserting a combo box in visio 2003

S

Sonny Minor

After I insert a Microsoft form 2.0 combo box I can't get the text list
within the combo box. I have tried using the Private Sub AddtoComboBox() and
add item "one" into the code but no luck so far. Help Please! Thanks!
 
W

wr

Hi Sonny,

if you drop a combobox on the document with insert/control
then the document is kind of like the form to the combobox
so on opening the document you need to populate the combobox with:
Private Sub Document_DocumentOpened(ByVal doc As IVDocument)
ComboBox1.AddItem "een"
ComboBox1.AddItem "twee"
End Sub

René
 
S

Sonny Minor

"wr" I am so thankful for your input to this problem. I did what I thought
you were telling me to do. I added the Private Sub
Document_DocumentOpened(ByVal doc As IVDocument) ComboBox1.AddItem "een"
ComboBox1.AddItem "twee end sub. To the Document and it entered it to the
ComboBox1. I am Within the View code of the Combo Box by right clicking on
the Combox itself. Still can't add but one line of text. New here so your
patience is greatly appreciated. This is very close to being the right way to
go so thank you for this much!
 
S

Sonny Minor

Rene I am so sorry that I didn't listen to what you were saying. This a a
great fix for my problem and it works very well. The problem I created for
myself is that I did not save and re-open the document. You are so
cool!!!!!!!!
 
W

wr

I am glad it worked for you

René
Sonny Minor said:
Rene I am so sorry that I didn't listen to what you were saying. This a a
great fix for my problem and it works very well. The problem I created for
myself is that I did not save and re-open the document. You are so
cool!!!!!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top