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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
Andrey
GO with JSRWilson ..
ASKER
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="AcceptInvitatio n"' which I guess is some image that is already part of office. Would I just specify the image path there instead?
Andrey
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="AcceptInvitatio
Andrey
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ah, that should do it. Thanks a ton, appreciate the help!
Andrey
Andrey
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.