Cannot create transparent XP CommandBar picture

J

jamieuk

Has anyone managed to get the code from the following KB article to
run in Excel VBA?

HOWTO: Create a Transparent Picture For Office CommandBar Buttons
http://support.microsoft.com/default.aspx?kbid=288771

The code is for Visual Basic 6.0 so it will require some leverage to
get it to run in VBA. I tried doing so by replacing some vb
enumerations with their numerical equivalents, using Stephen Bullen's
PastePicture code to create a StdPicture object using the clipboard
contents and employed the CopyImage API to do the opposite. But my
button images still have their magenta backgrounds i.e. had not been
made transparent.

Has anyone already got this code to run in VBA?

Many thanks.
 

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