Commas in ComboBox "Possible Values" changed to semicolons

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top