VBA / VSTO > Powerpoint > Hide Secondary Context Menu - vba

I have written a VSTO addin for Poweproint.
I am able to hide/disable most existing context menu buttons using the CustomUI XML config.
But cannot find how to access the secondary context menu (see below).
Not the whole thing. Just the top part (Style/Crop/New Comment)
What is the idMso for the mini context menu?
Ideally I would like to hide the mini context menu.

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.

Want to display notification in Task pane in Word using VBA

I have coded a VBA macro that notifies me whenever a new comment has been added to a document using a MsgBox.
I now require that no notification should be in the form of a MsgBox but are displayed in a task pane by clicking on the custom button(Comment Notifier) on the ribbon of word.
Can you suggest me way to do this?
First of all, you need to migrate your existing VBA solution to the add-in rails. There is no way to create a task pane from VBA. The Walkthrough: Create your first VSTO Add-in for Word article explains how to get started quickly. After adding all event handlers to the add-in you may add a task pane to the add-in project, see How to: Add a custom task pane to an application for more information.
Finally, the Walkthrough: Synchronize a custom task pane with a Ribbon button explains how to automate a task pane by clicking on the ribbon button, so you just need to replace the source code a bit and display a notification on the task pane instead.

is it possible to add a button to the right-click context menu for a user in Outlook 2010 using VBA?

I've tried many things and read up quite a bit but I cannot figure this out.
I cannot create an add-in so I have to use VBA.
I want to add a a button to the right-click context menu when I right-click on a user. Is this possible?
Yes, it is possible to customize the context menu in Outlook. See Customizing Context Menus in Office 2010 for more information.
But VBA doesn't allow to customize the Fluent UI in Outlook, you need to develop an add-in instead.

Dispaly ruler and the grid in powerpoint using VSTO project

I'm new to VSTO development. I need to add a ribbon menu to Power point . And this has a tick to enable ruler and the grid in power Point Slide. Is there any inbuilt method to active those via VSTO project.
You can display the grid lines with this line of code:
Application.DisplayGridLines = True
I'm seeing a way to display the ruler.
What is the scenario for displaying the ruler? Do you want to add button to custom ribbon that displays the ruler? If this is the case, you could use RibbonXML to include the built-in "Show Ruler" checkbox in custom ribbon.
http://msdn.microsoft.com/en-us/library/vstudio/aa942866.aspx

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.