Using getItemImage for a Gallery

T

tylagusim

I'd appreciate a pointer to sample VBA code which actually implements
asserting an image into a Gallery object in an Office 2007 Ribbon.
Defining the callback is clear, e.g. getItemImage="getMeAnImage" as
is the macro signature, e.g. Sub getMeAnImage(control As
IRibbonControl, index As Integer, ByRef returnedVal) but I'm baffled
by how to initialize/define the "returnedVal" parameter. Is it in
index to an image already contained in the xlsm file (unlikely). How
would one go using image files on the local disk (e.g. "C:
\MyPicture.jpg", "C:\YourPicture.jpg") to populate a gallery? I've
found a few Web pages which show examples of the XML showing how to
define a gallery within a RibbonX, but none that actually show how to
use existing image files for the gallery. Any help or references on
this topic would be most appreciated.

/Tyla /
 

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