• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 443
  • Last Modified:

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
0
andreyman3d2k
Asked:
andreyman3d2k
2 Solutions
 
JSRWilsonCommented:
In 2007 it's much better to create a custom ribbon entry with XML to run the ppam Add In.

Some basics here
http://www.pptalchemy.co.uk/custom_UI.html

Lots more if you google for ribbonX
0
 
suvmitraCommented:
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.
0
 
andreyman3d2kAuthor Commented:
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
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
suvmitraCommented:
GO with JSRWilson ..
0
 
andreyman3d2kAuthor Commented:
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
0
 
jostranderCommented:
Hi again Andrey,  

All credit should go to JRWilson, but just to lend a hand:

In the Custom UI editor, do Insert-->Icons-->(select a file)

It will name the file and you reference it in your XML with "image=" instead of "imageMso="

HTH,
Joe
giggity.jpg
0
 
andreyman3d2kAuthor Commented:
Ah, that should do it. Thanks a ton, appreciate the help!

Andrey
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now