I have a VSTO Ribbon for Excel and an Office.js add-in. I found that whenever any of the VSTO ribbon commands set app.SreenEnabling = false, or execute an app.run(), or execute TriggerEnabling(), the Office add-in restarts and loads all over again. At first I thought that it may be something in my add-in, but I even tested it with the default ExcelWebAddin.sln, and it restarts that also. Is there a way to keep the re-loading of the add-in to happen for those VSTO calls to Excel.
Related
In order to set up an automation of data refresh task, I would like to use VBA to ask the add-in "Microsoft Dynamics Office Add-in", to refresh and then refresh the power query connections to this file, and then move to the next one.\
I have tried to record a macro but VBA won't detect the button within the add-in pane that I clicked;I have also tried to reference to the add-in, however this add-in wasn't showing up, neither in the project explorer nor the references list.\
Is there a way to create VBA against this add-in? I have read the article at:
https://www.exceltip.com/custom-functions/how-to-use-your-excel-add-in-functions-in-vba.html
about how you set a reference but I could not even spot the add-in at the first step.
If it is not possible to get access to this add-in via VBA, is there any other methods to do for such automation task?\
Thanks!
I am developing a VBA add-in for MS Access. I have a CustomUI ribbon that loads fine when I open the add-in as a normal database. However, when I install the add-in using the Add-in manager, the custom ribbon does not appear.
My VBA add-in (.accda) currently consists of the following tables:
USysRegInfo - Set up as described on this page
USysRibbons - Set up as described in this article (Customize the Ribbon - Access)
How do I configure the VBA add-in to show the CustomUI ribbon when the add-in is installed/loaded?
I have been able to find documentation so far only on how to create a VBA "Menu Add-in," and how to customize the ribbon for a normal database. I haven't found any documentation on using the CustomUI ribbon from a VBA add-in in MS Access, so maybe this isn't possible.
You can reload the ribbon using
Application.LoadCustomUI NameOfTheRibbon, RibbonXMLFromUSysRibbonsTable
More here
I have a VBA Add-in in PowerPoint that is updated occassionally. I wrote a code in VBA where every Monday there is a check wether a newer version of the Add-in exists. And if it does, PowerPoint automatically updates the Add-In. So far, I have this accomplished:
Deactivate the old Add-In in PowerPoint
Delete the old Add-in in Microsoft's Add-In folder
Copy the new Add-In to Microsoft's Add-In folder
Activate the new Add-in in PowerPoint
However, I can't seem to find the right command to delete the old Add-in in PowerPoint. The old Add-in is still in PowerPoint's available Add-ins, and PowerPoint also lists it under the inactive Application Add-ins.
Here's part of the Code that first deactivates the Add-in, and then tries to remove it from PowerPoint.
Dim oAddin As AddIn
For Each oAddin In Application.AddIns
If Left(oAddin.name, 16) = "PPT ACO Add-in V" Then
oAddin.Loaded = msoFalse
Kill (oAddin) '<-- these is the line of Code that doesn't execute
End if
Next oAddin
The program would work, but after some time I'd have a bunch of inactive Add-ins laying around in PowerPoint which will be very confusing to users.
Thank you so much for your help guys.
Tommy
very late answer, but since I passed by and I spent myself quite sometime on this issue, instead of
kill (oAddin)
you need
kill oAddin.fullname
although you should also remove the addin from the collection of AddIns and maybe unregister.
Also, in version 2010, you might get an error of permission denied when you try to delete the file. This is caused by ppt not releasing in time the open addin file. In fact, a timer does not solve it. But a second kill will actually work.
I have a COM Add-in, which I want to make inactive with VBA Code (or maybe with another Excel Add-in '.xla').
This is my company's internal COM Add-in.
Working of this COM Add-in: While closing a workbook, a form is generated. This form asks which type of workbook (like private, confidential).
This COM Add-in can be made inactive without VBA by the following method:
Excel>Options>Add-Ins
Click On 'Manage - COM Addins' and 'Go'.
Deselect that Add-IN from Add-in manager & Click 'Ok'.
However, after opening a new workbook the add-in starts working again.
The solution to this issue is to create VBA code (/Excel Add-in) with workbook_open event to disconnect the COM add-in:
Application.COMAddIns("AddinName").Connect = False
But getting below error:
This add-in is installed for all users on this computer and can only be connected or disconnected by an administrator.
If one can make this COM Add-in inactive manually then why is it not allowed with VBA code?
I've created an Outlook 2010 Add-in (32 bit) using vb.net (2012). The add-in only has a ribbon tab and a small amount of code attached - just a msgbox for each button.
I've published and installed the addin, and installed the add-in in outlook. Restarted Outlook. The add-in appears to be active and this persists when outlook is restarted.
The ribbon doesn't appear.
As a test, I created another Outlook 2010 ribbon that adds text to newly created emails - that one works.
I'm new to vb.net.
What can I try next?
Fixed.
I hadn't set the RibbonType property of the ribbon to appear in the 'explorer' ribbon. The add-in was working, but I couldn't see that until I started to reply to an email.