VSTO Addin Menu button style - vsto

Any one can suggest me to apply style for RibbonMenu, RibbonButton Label names should be bold and indent in VSTO Add in project. My environment is VS2015, C#, MS Excel 2013 and 2016.
Thanks in advance

Ribbon controls do not support formatting in labels, captions or tooltips. They can only display plain text.

Related

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'.

How to migrate Word ribbon tab from 2007/2010 to 2013

I distribute a Word template with a large VBA code base in it. The template includes a menu, and for Word 2007/2010 users, a ribbon tab. In Word 2013, everything still works fine via the menu, but the ribbon is not showing up. I still code in VBA without using Visual Studio (and don't want to buy VSTO). So i'm trying to figure out how to update my ribbon code/xml or whatever it is I need to do to make my ribbon tab show up in 2013.
The ribbon is copied into a new document from the template when a user creates a new document based on the template. But something's going wrong with that process in Word 2013.
Interestingly, if I open a document that was previously created from my template (in Word 2010), the ribbon displays and works fine. But if I create a new Word 2013 document from the template, the ribbon is not there.
There must be something I need to do in my code to tell Word to display the ribbon in new documents based on my template, but I haven't been able to find that information.
I've always generated my ribbon using "Office Custom UI Editor," which is not available for Word 2013; that tool "inserts" the xml into the template. My ribbon XML starts with this:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="SERibbon_Load">
<ribbon startFromScratch="false">
<tabs>
Anybody know how to make my ribbon tab work with Word 2013?
Well, it turns out that there really isn't a problem with my ribbon or code. The installer code that installs the template installs both a ".dot" template (without a ribbon) for users with Word 2003 or earlier, and a ".dotm" template (with ribbon) for more recent versions of Word. It then sets up a shortcut to the template on the user's start menu.
The installer code isn't recognizing that Word 2013 was installed, and is concluding that the user is using Word 2003, and thus creating a shortcut to the ribbon-free version of the template. I changed the shortcut to point to the ".dotm" version, and all is well. So it turns out that my custom ribbon tab works fine in Word 2007/2010/2013. I just had to fix my installer to detect Word 2013 (version "15" in the registry) is installed.
The namespace apparently changed in 2010, but is backward compatible with 2007. 2010 added things to the namespace, 2013 added new things, but my understanding is that it's the same schema, and thus also backward compatible with Word 2007 ribbon definitions.
G
I haven't done this yet, myself, but check out this thread from msdn: http://social.msdn.microsoft.com/Forums/en-US/officegeneral/thread/6575cee8-796a-40da-9520-24c5161f7600.
It looks like the namespace is the same, but some attribute values may have changed. You may have want to check against the documentation to see if your ribbonXML is in compliance: http://www.microsoft.com/en-us/download/details.aspx?id=727.

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.

How can I add a control like a DateTimePicker to my office ribbon I'm creating using visual basic?

I'm creating an Microsoft Office 2010 add-in ribbon with a bunch of controls on it. I am able to add things like buttons, TextBoxes, and Labels. :-) I am not, however, able to add the one control I need, which is a DateTimePicker. :-( Is there some workaround or hack to getting other controls like a DateTimePicker on my ribbon?
If it helps any, I'm using Visual Basic 2010.
I wound up just making one of my buttons open up a separate form which then was able to have the DateTimePicker control on it. :-)

Easiest way to migrate Word 2003 custom macro toolbars into Word 2007?

I have a series of macros and toolbars that I developed for Word 2003. Now that my office is upgrading to Word 2007, I need to migrate them. The macros themselves migrate with zero effort, but the toolbars are a different issue. A random subset of the toolbars show up in the "Add-Ins" ribbon tab, but I haven't found a way to control which ones.
Something that may be a complication is that I deploy the macros by placing a template into a user's Word STARTUP folder (C:\Documents and Settings\username\Application Data\Microsoft\Word\STARTUP). While I can add macros from normal.dot into the Quick Access Toolbar, I cannot add macros from this startup template. I'd like a better, more structured layout anyway.
So, what's the easiest way to replicate my custom macro toolbars in Word 2007?
The macros and toolbars that I developed for Word 2003 are in a number of .dot files. I simply put these .dot files into my Startup folder. I restarted Word'07 an wallah, these Macro toolbars appeared in the Add-Ins ribbon.
Good Luck