ComboBox set selection in vba

ComboBox set selection in vba

Hello
I am using Zenon 8.20 ComboBox with dynamic items. For example (0,A;1,B)
I need to set a value in the ComboBox in vba. I don't get this to work. How can this be done?
I tried setting the string variable that is connected to the ComboBox. But this does not have an effect.
Thanks
D. Ackermann

This is a migrated post! Originally posted on 30.03.2022 by user DermotAckermann. Please be aware that information can be outdated.