fire event problem with commandBarComboBox

T

tanguy

Hi,

I've a little problem and I hope someone could help me...

I developed an Word toolbar with a combobox which has a Change event. This
event works fine manually (with text wrote with keyboard and use of the
mouse), but if I use some code to fill the combobox and then focus an other
control on my commanbar, the Change event is not fired... I'm obliged to clic
on the combobox text and then clic elsewhere to fire the event.

Is there a way to firing this event when the combobx text is changed ?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?dGFuZ3V5?=,
I developed an Word toolbar with a combobox which has a Change event. This
event works fine manually (with text wrote with keyboard and use of the
mouse), but if I use some code to fill the combobox and then focus an other
control on my commanbar, the Change event is not fired... I'm obliged to clic
on the combobox text and then clic elsewhere to fire the event.

Is there a way to firing this event when the combobx text is changed ?
Have you tried using something like this, after the code has changed the text:

CommandBars("Index").Controls(index).Execute

I can't guarantee it will fire the Change event, but I think it might...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
T

tanguy

Thanks for your help but the execute method does not fire the event... :-/

"Cindy M -WordMVP-" a écrit :
 

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