Looping through a custom commandbar combobox

D

DP

Could someone help with a code fragment that will loop through all the items
in a commandbar (custom) combobox and, in sequences, dispaly the item TEXT

Not sure why this won't work:

Dim i as integer

For i = 0 to Commandbar("x").controls("y").ListCount

msgbox Commandbar("x").controls("y").ListIndex(i).Text

next i
 
Top