I develop, for our department, an MS Excel add-in that includes a custom ribbon tabs that shows up when user lunch the add-in and hide some MS Excel tabs that we do not needs.
This custom ribbon includes a quit function to unload the add-in.
The problem is that the company does provide some add-in with custom tab.
I would like to know, how I can hide temporary their custom tab and show them when the user quit out add-in.
You can simply enable/disable the company's add-ins, using:
Application.AddIns("name of the add in here").Installed = False
Of course, considering you know the other add-in names.
Related
I want to open the 'Insert Hyperlink' menu programmatically without right clicking the cell.
https://stackoverflow.com/questions/48985342/open-insert-hyperlink-menu-in-excel-through-a-clickable-shape#:~:text=Application.Dialogs(xlDialogInsertHyperlink).Show
this link shows the way to achieve this in vba, is there a similar way for opening hyperlink menu in Excel office Add-in?
There is not yet an Office JS API similar to the Application.Dialogs API in VBA that can be used by an add-in to open Excel dialogs. Please consider logging a request for this API in the Microsoft 365 Developer Community.
An alternative might be to have the add-in provide UI similar to the Insert Hyperlink dialog either in the task pane or in a dialog.
I am working with Excel 2013. I've written several macros in Personal Workbook modules. I've created custom buttons in the ribbon to run those macros and everything works fine. Next day I run Excel and the custom buttons are gone. I tried this many times and the result is always the same. Strange thing is that custom buttons that I have created more than a year ago are there and are never removed
I have done some research and it seems that Excel does this for security issues. Is there a way to bypass this button deletion?
VBA macros is not designed for customizing the Ribbon UI (aka Fluent UI) in Office applications. For current document you may include a custom ribbon UI into the document. For example, the following articles describe how to do that for Word documents, but the approach is common for Excel and Word documents:
OfficeTalk: Customizing the Word 2007 Fluent Ribbon is as Easy as 1-2-3 (Part 2 of 2)
OfficeTalk: Customizing the Word 2007 Fluent Ribbon is as Easy as 1-2-3 (Part 2 of 2)
If you need to distribute your customizations on multiple machines, I'd suggest developing a COM add-in instead, for example, it can be a VSTO add-in. That's what they were invented for. Moreover, you can create a custom UI customizations as a part of the add-in.
Read more about the Fluent 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)
If you customized the ribbon using file->options, you can see the .officeui file in the below folder, I think this file is not synchronized in your next login, but you can copy to your local, and when it's missing you can copy that officeui file to the %appdata% directory as mentioned below.
%appdata%/Microsoft/office
I recommend you to customize the ribbon in your workbook using CustomUI editor, so that it will retain the customization inside your workbook and not as the separate file (OFFICEUI).
I have Excel 365 64 bit and I'm trying to add an old add-in. In previous versions of Excel when I added my Add-In (Duplicate Master V2 by brettdj) it would create a new tab labeled Add-In and there would appear the routine. I've tried adding on my new Office 365 Excel Add-in, but I cannot find it anywhere.
Right-click the file in Explorer, choose Properties, and look for an option/button to unblock it. Then restart Excel. You should then see the AddIns tab hopefully!
Currently I have an Excel Add In in Excel 2016 called 'Excel Image Assistant' (https://excel-image-assistant.com/). This is an excel add-in currently enabled on my excel and appears under a tab on the ribbon as Add-Ins.
I have developed a VSTO Add In which I want to install on my machine and enable this personalized bespoke ribbon. It installs perfectly fine, however when I enable this COM add in. The items from the excel add in now appears in my COM ADD IN ribbon.
I want to treat these as two different tabs but it seems as though the excel add in is conflicting with the VSTO COM Add In.
So you can only have one or the other enabled to see the add in Excel but if you have both enabled the Excel Add in is put in my COM add in.
Is this in the VSTO Code that could be causing this? Or this is something in Excel settings wise that may need to be adjusted to allow both of these to be enabled as different tabs in the ribbon as i need them treated seperately.
I'm trying to control Outlook via Excel by VBA ofc.
My Excel code creates and XML that adds button to Message Ribbon.
The button's job is to save email to specific location given by Excel.
I cant run Excel macro from Outlook macro because you cant access VB Project of Outlook. It needs to be provided for couple of persons and this is hard to deploy and control. So I thought maybe I can capture click event of that button from excel. I've seen examples to capture Reply button but nothing else.
I'm looking for place in Outlook object where this information might be stored. And any help with that, different approaches are welcome as well.
It looks like you need to develop a COM add-in instead of VBA macro. First of all, you can't modify the Ribbon UI in Outlook from VBA macros as you do it in Excel. Second, VBA macros are not designed for distributing them on multiple machines. That is what COM add-ins were invented for. See Walkthrough: Create your first VSTO Add-in for Outlook to get started quickly.
The following articles provide instructions on how 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