Link to home
Start Free TrialLog in
Avatar of andreyman3d2k
andreyman3d2k

asked on

How to add image to custom button for PowerPoint 2007 VBA add-in?

Hi,
An awesome expert here made an add-in into PowerPoint for me. When I install the add-in, it creates a button in the add-ins tab with a custom name. I was wondering if there is a way to add an image (my company logo) to that button.

Below is the code for the add-in.
I though it might go after

 NewControl.Caption = "Add FHC Project Number"

But I could not find any image property for NewControl

Is there another way?

Thanks very much!

Andrey
ASKER CERTIFIED SOLUTION
Avatar of John Wilson
John Wilson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Remove the Add-In from powerpoint Ribon..then re-install it by performing the below steps -->
Right click on the toolbar --> go to Customize---> Select Macros  from the Command tab --> You should be able to see your Add-In is listed there --> select --> Ok
Now before exiting the Customize Dialog box --> You will be able to see your Add-In is there in the Toolbar ..Right Click --> Change Icon/Images property will show up --browse/select the image to display --OK.
Avatar of andreyman3d2k
andreyman3d2k

ASKER

Thanks for the reply. Your instructions will allow me to a add a custom image button to the quick access toolbar -- is there a way to add a custom image to a ribbon button?

Andrey
GO with JSRWilson ..
JRWilson,

I looked at the link you sent me, everything makes sense and I want to try it, however I am unsure of how to change the XML to bring in a custom image. The code in the example is 'imageMso="AcceptInvitation"' which I guess is some image that is already part of office. Would I just specify the image path there instead?

Andrey
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ah, that should do it. Thanks a ton, appreciate the help!

Andrey