View Single Post
 
Old 04-11-2012, 02:27 PM
ll4u76 ll4u76 is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Mar 2012
Posts: 7
ll4u76 is on a distinguished road
Question Adding a long list of values to a combobox in Word 2003?

I have a list of over 50 value items that I want to add to my combobox in Word 2003. Please assist me on how I should type these values in VBA without getting a Compile Error: Syntax Error.

Here is an example of how I typed the code:

Me.ComboBox1.List = Split("item 1 | item 2 | .......") & _
("item 20 | item 21 |......") & _
("item 48 | item 49 | item 50", "|")

Please assist.
Reply With Quote