ActiveX Controls on Documents

V

vera

Please help again! How do I populate the list in an
ActiveX combo box? Nothing seems to work for me ... even
code using the combobox1.add method in the document.open
event. Is there some trick to this? Can't the list just be
typed into the properties anywhere? I add a semi-colon
delimited list to the Text (just guessing there, can't
find any documentation) but I just get a list in the
field, no drop down values.

And by the way, is there any way to search this archive?

Also, How do I get the VB Toolbar to stay open in Word? It
seems that I have to add it every time I open the program.
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Hi Vera,

The following code in Private Sub Document_Open() will add items Item 1 thru
Item 10 to the ActiveX ComboBox1 in the document when the document is
opened:

Private Sub Document_Open()
Dim i As Long
For i = 1 To 10
ComboBox1.AddItem "Item " & i
Next i
End Sub

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Hi Vera,

Forget to mention that to seach these newsgroups, go to

http://groups.google.com/groups?hl=en&lr=&ie=ISO-8859-1&q=Microsoft.public.word&btnG=Google+Search

Re the VBA toolbar, I never use ActiveX controls in documents. A userform
in a template is a much better approach.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 

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