How to interact with the 'Microsoft Dynamics Office Add-in' by VBA - vba

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!

Related

Is PowerPoint automation from Excel possible with Office Add-Ins?

I have a VSTO add-in for Excel that automates PowerPoint, creating new presentation documents and generates slides and other content based on the data in the current Excel workbook. (Using the Primary Interop Assemblies, it creates a new instance of the PowerPoint Application, adds a new Presentation object, Slide objects etc.)
Is it possible for a new Office Add-in to do this so it would run in Excel online, on the Mac, and so on?
It looks like I can get the context of the Office application I'm currently in (e.g. Excel), but I don't see how I can reference the PowerPoint object model, or automate anything outside of Excel itself.
Is this what Microsoft means when it says to create a VSTO add-in
"...or to extend Office 2013 and Office 2016 beyond what's possible
with Office add-ins. VSTO add-ins run only on the desktop."
rather than building a new JavaScript/HTML Office Add-In?
Thanks.
No, it is not possible. Web add-in are on different platforms like Mac where the COM automation technology doesn't exist.
Instead, you may consider using the Open XML SDK instead for generating PowerPoint files on the fly from your Excel web add-in. See Welcome to the Open XML SDK 2.5 for Office for more information.

MS Access - Load CustomUI Ribbon from VBA Add-in

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

VBA when user clicks Send as Attachement

My company has an issue with Outlook when it is triggered to open by Excel that causes Outlook to hang indefinitely when loading (an issue which cannot be easily fixed). We have a few workbooks with custom ribbons where we now check that Outlook is open first before allowing the user to send via email. The problem is that this doesn't account for users that still use the File > Save & Send > Send as Attachment.
I would like to know if anybody knows about a process by which I can add on a routine to the existing button that we could save as an Excel Add In on everyone's Excel that checks first if Outlook is open? I have the Outlook check written so I'm just needing help with finding a way to run it.
Any help is appreciated.
Alternatively you could disable Send as Attachment.
I wouldn't know what is important so I won't copy parts here.
How do you disable “Save and send” in Excel 2010 (in the File ribbon (called backstage in Office 2010)?
Disable the Send button in the Office Menu
You may consider repurposing the ribbon controls. See Temporarily Repurpose Commands on the Office Fluent Ribbon for more information.
Unfortunately the Backstage UI doesn't allow to repurpose controls from the XML markup. You may consider hiding the built-in UI and rebuilding it fully with custom commands. Thus, you will be able to handle the commands on your own. You can read more about that in the Introduction to the Office 2010 Backstage View for Developers article. Also see the Customizing the Office 2010 Backstage View for Developers article.

Creating PowerPoint 2010 add-in - and adding to Quick Access Toolbar

I have been working on an add-in with some short-cuts for PowerPoint 2010.
I am able to make the add-in "tab" so that I can access my macros from PowerPoint after installing the add-in.
However, I cannot add the macros to my Quick Access Toolbar, or otherwise create shortcuts.
This creates a need to use a very extensive key combination to access the add-in shortcuts, eliminating part of the rationale behind them.
Is there any way to make PowerPoint macros that I can then link to the Quick Access Toolbar?

How to automatically add a button to a ribbon in Excel 2010

Is it possible to automatically add a button to Excel Ribbon to run a macro when a user open an Excel file. Problem is I have developed a macro and would like to share it with my group members. Now on my personal computer I could customize the ribbon and assign a given button to my macro but this ribbon customization will only be available for me. So after I send out the workbook to members of my group, they will not see the button that I have assigned for the macro. I could add an ActiveX control but this will be on the sheet itself and not on the ribbon (Excel 2010)
Is there a way to do this, without having each member customize his/her ribbon.
Thanks!
I think that you are talking about VSTO, which is the add-ins framework of MS Office, and normally, you need the VS Studio, not Express, to develop your add-ins application.
And at first, you can go to http://msdn.microsoft.com/en-us/library/bb410115%28v=office.12%29.aspx to read the simple guide about the Ribbon button integration, and about other integration way and method, you can read the MSDN directly.
And of course, as a professional VSTO developer, if need, I can help you too. :)