office 2007-dynamic combobox in ribbon

J

JanS

in my application I have put a combobox in the ribbon. The items in the
combobox are updated by the program. This works fine. However I like to get a
specific item from the list as you do with the mouseclick, but via the
program. My application is in access but probably it is about the same for
excel and word.
How can I do that ??
 
T

tighe

JanS,

although i do not have a direct answer I have found reference and sample code:
I beileve what you looking for is the OnSelectItem/OnChange command, but
I've been working with these samples for three days now with little avail on
getItemLabel, no matter how i slice it:

http://www.accessribbon.de/en/index.php?Access_-_Ribbons:Callbacks:Combobox_-_onChange

http://www.scribd.com/doc/6789365/Access-2007-Vba-Programmers-Reference9780470047033 ( Ribbon items start page 385, but this is on page onSeelct,p. 395)

other sources i have used:
http://msdn.microsoft.com/en-us/library/dd548011.aspx

I hope that helps you. if you could post you working code for getItemLabel,
i get the same label, the first record information, for all items in the list.
 

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