Can there be two ribbons in an Outlook VSTO Add-in? - vb.net

I'm using the visual designer and have one custom ribbon with 12 or so buttons on it. I'd like to add the most important button from that ribbon onto "TabMail" so that I can use it more easily.
I have added another ribbon via the "add..." dialog, then ribbon, and then add a test button to it. When I then run the solution (from Visual Studio, debug or release) it seems to pick one ribbon or another to show - either leaving me missing a button, or missing 12!
What am I doing wrong?

I've just found that what I should be using is two Tabs, not two Ribbons. Each tab can appear wherever you want, rather than each having to come up as a separate custom tab.
Here's the setup inside visual studio:
Shown below is "My Button" in blue, and in red is "My Tab"

Related

How can one suppress the mini toolbar from appearing on the right-click event in Microsoft Word?

I am working on a custom vb.net application which uses Microsoft Word embedded in it. As the users are restricted to what kind of formatting they are allowed to do while modifying documents, we are using a template which contains custom ribbons and menus.
In the past we have also captured the right-click event to suppress the display of the built-in shortcut menu and mini toolbar.
We would now like to re-activate the right-click to bring up a modified shortcut menu. This we can do through macros and templates. However, we are not able to keep the mini toolbar from appearing on the right-click event. We have turned off the Word Option which automatically brings up the mini toolbar when one selects text, however, that does not affect the behavior of the right-click event.

MSAccess VBA Enable/disable item on shortcut menu at runtime

I use several custom Shotcut Menu Bars in my MSAccess solution. If I use the built in shortcut menu bars they will automatically disable, grayed out, an item not available at the time of right clicking. How can I replicate this during run-time on my custom shortcut menu bars? Custom Shortcut Menu Bar In this example I would like to gray out the item "Send SMS" if the contact does not have mobile/cell number. I currently do this by having two different shortcut menus that is set at runtime, depending on if the number is available.

Removing a custom tab in MS Word ribbon for MS Office

I had a custom ribbon tab installed in MS Word (the tab works for MS Office 2007 and up). I want to remove this tab, but I cannot determine how to do that. I've looked through the "add a custom ribbon tab" answers and they did not help. I know the tab was created with VBA. I do not have the code that created the tab, it was installed with some sort of installer file, which I do not possess.
Any ideas as to how I can remove this ribbon tab? thank you.
Right click on the ribbon and select Customize the Ribbon
Find the name of the tab you want to remove on the right and uncheck it
Click OK
You can do this by downloading the CustomUIEditor from here: https://www.rondebruin.nl/win/winfiles/OfficeCustomUIEditorSetup.zip
This allows you to edit the XML within your ribbon and remove the tab you don't want. Just make a backup of any files you edit as it's quite easy to break stuff

Move form visual studio 2010

Is there a way i could move or center my VB.net form in Visual Studio 2010?
I'm asking because whenever my toolbox is open, it hides my form and it's getting annoying.
At the top of the toolbox is a button that looks like a pin which toggles auto-hide. Click it and everything will move over so you can see the form and toolbox at the same time.
also, if you don't want the toolbox to auto hide, you can move it to the right side of the window, out of your way.

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.