How to create custom shapes menu in Powerpoint - vba

By the "Shapes Menu," I mean the menu that you get to from the ribbon by going to Home -> Shapes.
I would like to either:
Choose my own shapes for within the Shapes menu, including changing the names of separators
Create my own ribbon menu from scratch that allows you to create a gallery with separators
Here is a picture:
Note: I'm interested in doing this for Powerpoint 2013, not sure if that makes a difference.

A global intro to the Ribbon is available on the Microsoft site at http://msdn.microsoft.com/en-us/library/aa338202%28v=office.12%29.aspx. Be sure to check out parts 2 and 3, links to which are located in left menu of that page above.
More specifically, you might find some useful guidance on building a Gallery at http://msdn.microsoft.com/en-us/library/dd904887%28v=office.12%29.aspx.
In terms of modifying the XML behind ribbons, I use the Custom UI editor. You can download it at http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2009/08/07/7293.aspx

Related

Office Ribbon resizing

I am trying to define a ribbon for an Excel VBA Addin, with tabs, groups and buttons. It all works OK. This is done with a CustomUI like process (I actually have a script that zips and unzips).
However, if the window is narrowed, then entire groups just disappear (together with their keyboard shortcuts!). What I would like is that the labels disappear first, just leaving the icons, as happens on, for example, the Home tab in Excel.
There is some confusing documentation, but no complete example. I am also confused about the relationship between Office Ribbon, WPF.Net ribbon, Dynamics ribbon, and Windows Ribbons. I suspect they are unrelated tools.
Any pointers to an example most welcome.
After many red herrings, found it. Put
<group ... autoScale ="true">
on all group elements. Does not work for Excel 2007 (which is why I use a script to generate variants of ribbons for different versions of Excel).
BTW. Excel > Options > Advanced > General > Show addin errors needs to be checked in order to see ribbon errors.
As to my second part, it looks like there are several different unrelated implementations of the Ribbon, which makes the docs hard to find.

How put custom icon to Visio Document for custom ribbon

I am trying to put custom icon to Visio Document for custom ribbon. When I using Excel I can use utility “Custom UI Editor for Microsoft Office”. For example, I can write next xml in utility and insert some picture:
Custom UI Editor
In Excel all working excellent.
But when I trying use this way in Visio, I don’t see picture on ribbon when I opening Visio-document.
After that I opening “Custom UI Editor for Microsoft Office” for Visio-document I also don’t see inserted picture that I inserted before.
Custom UI Editor after opening Visio-document
Can anyone help me out with my problem? Thank you.
This is a known issue in Visio. Custom icons in .vsdx file simply do not work.
If you are really determined to have custom pictures, you should do it otherwise.
Like via VBA macro, by writing a callback, i.e. instead of image specifying getImage pointing to some callback function to get the custom image. Or even by creating a full-blown extension.
Note - Microsoft-defined (idMso) images work fine.

Can I base a word template on another template

For the purposes of branding, our Word normal.dot template is updated via the login script. This pains me terribly, because I have a number of very useful VBA macros that I want to have access to. Specifically, I have two macros that I add to the Quick Access Toolbar in the title bar that I use all the time.
From what I understand, those macros can only be taken from the document itself or from the template it is based on.
What I am looking for, is a way to either:
Add a QAT button to a macro in another file somewhere.
Base all my documents on a new template (call it abnormal.dot) which in turn is based on normal.dot, so it can retain the macros even when normal.dot is overwritten.
Any other way of achieving my goal.
Any ideas?
You can add additional templates to your Word Application.
Go to Developer Tab on the Ribbon >> Templates section >> press Document Templates...
In new window on Template page you will find Add button on the right- add there some additional templates. This should help.

Outlook 2003 toolbar customization: add/edit button list

I have macros in my VbaProject.OTM file. A new toolbar is created when Outlook is launched to allow users to easily run the macros.
(sorry about the interface being in French ;-))
I would like users to be able to customize the toolbar by removing some of its buttons or adding them back. Here is the customization panel:
All my macros are there (all the public Sub()s in modules). However, the macro names and icons aren't really user friendly. I'm looking for a way to change both the icons and names. I'm actually using default FaceIds for my toolbar buttons (but I will add some custom icons in the future too). Also, if there would be a way for some public Sub()s to not me showed there, it would be perfect. Or to add a whole category instead of the Macros category.
When searching through the Web, all I can find is how to add toolbar buttons (which is already done in my example). Does anyone have any idea on how to edit the names/icons in the toolbar Customization panel? Is it possible?
I suggest built-in dialog boxes cannot be modified with VBA.
Try adding a permanent button "Add/delete buttons" to the toolbar, to launch a userform to choose the specific macros you want users to work with. You could then use a better name and other text to describe the macros in your own listbox.

Excel VBA: How to turn code into a full on toolbar tool? [duplicate]

I am in the process of creating a VBA add-in for Excel 2010, and I used the "Custom UI Editor for Microsoft Office" tool to create my own ribbon.
However, I would like to give the user the option to load my add-in without displaying the ribbon, or with different parts of the ribbon visible.
With menus, I know you can completely control them programmatically, but ribbons seem to work differently.
Is there a way in VBA to not load my customUI.xml ribbon tabs on startup?
Is there a way to remove items from (or add items to) these tabs at runtime?
here is a whole slew of help on this subject Awesome Ribbon Help. I think points 2 and 3 are of particular interest to you.