Commas in ComboBox "Possible Values" changed to semicolons

G

Guest

Whenever I use a comma in my string of Possible Values for a ComboBox, Outlook changes it to a semicolon which in turn makes it display on another line. For example, "Las Vegas, NV" is changed to "Las Vegas; NV" and lists two choices when the form is run (Las Vegas and NV). I have tried quoting (single and double) the string but Outlook always seems to change the comma

Is it possible to include commas in a ComboBox

Any help would be appreciated.
 
S

Sue Mosher [MVP-Outlook]

If you want to include commas in combo box list items, you can't use
Possible Values. Instead, write code in the Item_Open event handler to
populate your combo box with the AddItem method or List property.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Zach68 said:
Whenever I use a comma in my string of Possible Values for a ComboBox,
Outlook changes it to a semicolon which in turn makes it display on another
line. For example, "Las Vegas, NV" is changed to "Las Vegas; NV" and lists
two choices when the form is run (Las Vegas and NV). I have tried quoting
(single and double) the string but Outlook always seems to change the comma.
 

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