PowerPoint 2010 - VBA - Use Ribbon Button Inside of a Userform - vba

Is it possible to take a pre-existing button from the ribbon, Shape Fill from the Shape Styles category for example, and display it in a VBA userform?
My add-in manages a large number of shapes, and I would like to allow the user to style those shapes based on the category that they are in in the add-in.
I have read that a color dialog does not exist for us to use in VBA, so I'm trying to think of a way to work around that. Recreating all of the fill, outline, and effects menus seems like too much, there has to be a better way.

No, built-in ribbon controls can be used on the ribbon only. As a workaround you may consider using any ActiveX custom controls on your form.
Also you may consider creating a custom UI on the ribbon. In that case you will be able to add built-in ribbon controls to your own tab by specifying its idMso value. The full list of control IDs can be found in the following documents:
Office 2010 Help Files: Office Fluent User Interface Control Identifiers
Office 2013 Help Files: Office Fluent User Interface Control Identifiers
Office 2016 Help Files: Office Fluent User Interface Control Identifiers
Read more about the Fluent UI (aka Ribbon UI) in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

Related

How to run an Macro in PowerPoint in the edit mode without starting the presentation

I have created a dropdown menu with a ComboBox and a small macro.
This dropdown menu only works when I switch to presentation mode.
However, I want to use the dropdown in the edit mode, as a template. Is there a simple way to do this.
I have already found some posts about this topic, but no real solution yet.
You can customize the ribbon UI instead. In that case your custom UI will be available in the edit mode. See Customize the Office Fluent ribbon by using an Open XML formats file for more information.
The Fluent UI (aka Ribbon UI) is described in depth in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
You may also find the Custom UI Editor helpful.

How to create toggle button for Macro

I have created a macro that will set the categories of out going mail without needing to open the tag dialog. I have added the macro to the ribbon via the "Customize Ribbon" options on outlook itself. That macro works fine, however I would like the button to be highlighted (toggled on) when the category is set and then regular (toggle off) when the category is no longer set.
I only have basic VB knowledge but have good knowledge of java so the concepts are familiar just not the syntax. This is also the first macro I've ever done.
I have tried searching Google and Stack for an answer but I think due to my lack of knowledge I'm not using the correct keyword to get a useful result.
Thanks for the help.
VBA macros don't allow creating a custom ribbon UI. You need to develop a COM add-in if you want to customize the Fluent UI by adding a toggle button to the Outlook window.
Take a look at the following articles to create a custom ribbon UI:
Walkthrough: Create a custom tab by using the Ribbon Designer
Walkthrough: Create a custom tab by using Ribbon XML
The Fluent UI is described in depth in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

Create a custom button with icon in a custom group for Outlook using C# VSTO

I am fairly new to C# as well as the Outlook Library.
I have created a custom group in Meeting Tab of Outlook, which has a button in it.
I also added an image in properties of Button(as displayed in the screenshot).
The image would represent the logo of my add-in. But I'm not able to change the size of that image.
I want my button to look similar to that of other buttons of Outlook just like 'Skype Meeting' or 'Meeting Notes' with the larger icon.
Can anyone please suggest me the way to design the Button with large icon.
I have created the Ribbon (Visual Designer) in Visual Studio 2015 for Outlook 2016 Add-In using VSTO. What would be the best way to do this using C#?
There are two sizes for "button" ribbon control:
size="large"
size="normal"
If you add into your button control XML large size, you'll get the button look you are referring to. For more information on how to customize Office Fluent Ribbon please refer to the following great resources:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
I got the solution for this problem.
We can set the property 'ControlSize' of Button to 'RibbonControlSizeLarge'.

Outlook custom buttons in ribbon

I can use custum ui editor for Excel and Word VBA projects to add custom buttons on the ribbon with XML.
I have an Outlook-project (VBAProject.otm) and would like to do the same thing, to add buttons to the ribbon so when I'm deploying the custom buttons move with it.
I don't wont to use VSTO, only VBA.
Any suggestions?
Unlike other Office applications, in Outlook VBA macros can't be used for customizing the ribbon UI. You need to develop a COM add-in (for example, a VSTO based one). Take a look at the following articles:
Walkthrough: Creating a Custom Tab by Using the Ribbon Designer
Walkthrough: Creating a Custom Tab by Using Ribbon XML
The Fluent UI (aka Ribbon UI) is described in depth in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
Full Credit to This Site

Webbrowser on Excel Ribbon?

I'm using Visual Studio 2008. It is possible to add a Webbrowser item to a Form item, but is it possible to add a Webbrowser item to a Ribbon item ?
Or is there another way of showing a Web Page on the Ribbon ?
There is something called Ribbon-XML, may that do the job ?
Or is it possible to bind a Form (inheriting a Webbrowser) to the Ribbon ?
No, there is no way to place any third party controls on the ribbon except the ones defined by the Ribbon scheme.
Instead, you may consider placing a web browser control on a custom task pane. See Custom Task Panes for more information in MSDN.
Read more about the Fluent UI (aka Ribbon UI) in the following series of articles in MSND:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)