Reload Office content Add-In from powerpoint #24 - vsto

I have office web add-in added in my PowerPoint slides (multiple instances of add-in). Need some settings that will be common across all add-in instances. for that tried to use VSTO Add-In and save those in settings file of it.
Now the issue is how i can pass those settings to each content add-in instances so i can read those in each add-in instance.
OR
Is there a way where i can get handle of content add-in's context menu buttons 'Reload', so after any change from VSTO Add-In, can i just call 'Reload'. I can move settings in DB if needed.
Content Add-In Reload option
Appreciate any insights on this.

You need to store these externally. Settings are scoped to a single Add-in (technically to a single manifest id). From the documentation:
The settings created by using the methods of the Settings object are saved per add-in and per document. That is, they are available only to the add-in that created them, and only from the document in which they are saved.

Related

Keep changes to office ribbon local to file?

I have a presentation that needs to be regularly updated. To facilitate this quickly I have written a simple form in VBA which I would like to be accessible from the ribbon (or via a button in editor mode).
However I do not want the button in the ribbon to be visible in other Power point documents.
Is it possible to stop customizations from being applied globally?
Thanks in advance
XML ribbon customizations in a PPTM file are only visible when that file is open and has focus. It sounds like this is what you'd want to do ... store the VBA and RibbonX code in the file you want to work with.
If the XML ribbon customizations are in an add-in (ie. PPAM) that's loaded, the customizations will be present for any open file.
#Cilvic has a good point (thanks!). If you're adding customizations to the Ribbon or QAT via the built-in customization feature, these will also be there whenever PPT is open. You can't make them appear only when a certain file is open.
Where are your customizations (and are you in fact using XML or are you creating command bars)?

Excel custom Add-In not loading when instance of Excel is opened by another application

I have created a custom add-in for Excel and for the most this work fine without any issues.
However, we have a 3rd party application where we can select the option to "Open In Excel". This then loads a new instance of Microsoft Excel with a load of data populated from the application, but does not load the custom add-in.
If I go in to the add-ins option, I can see that Excel still seems to think that the add-in is enabled but I can see that it is not because the macros are not imported to workbook.
I can disable and then re-enable the add-in and it will work just fine. I can also open an Excel document or a new instance manually and it will work as expected. It only ever seems to be an issue when the instance of Excel is opened from this 3rd party application.
I assume that this is because the add-in is bound to my account and the process is being started by another account even though task manager sees it as being a process ran by myself.
If anyone has any ideas as to why this is happening or how to resolve it, I would be very grateful to hear.

Permanently append Customized Ribbons to PowerPoint file

I have written 2 Macros in PowerPoint and added the Macros to a customized ribbon named 'My Ribbon' to make those macros available at a click of a button. The only problem is the Ribbon disappears when someone else opens the PowerPoint on a different computer. The macros stay with the file but the customized ribbons do not and we have to create another customized ribbon, and place both macros to the ribbon every time we share the file across our drive.(Which is quite annoying)
I want to permanently append the customized ribbon to the PowerPoint so that anyone who opens the PowerPoint will be able to see the personalized ribbon with both Macros already on their version of PowerPoint.
VBA macros are not designed for distributing the code on multiple PCs. If you need to get a solution which can be installed on other PCs you need to develop an add-in. That's exactly they were invented for. Moreover, you can create an installer for the add-in. It will be installed as other applications on your PC. See Walkthrough: Creating Your First Application-Level Add-in for PowerPoint to get started.
If you choose to stay with VBA macros, you will have to edit the open xml document. See Customize the Word Ribbon User Interface for more information. The process is common for almost all Office applications (Outlook does't support that).
You could use such a program like Ribbon Editor to customize the Ribbon for your pptm file only. (No need for an AddIn it you want it deployed only with the file)

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.

Word 2007 add-in for a custom ribbon - ribbon not visible in the saved document

I have a requirement where I need to have a custom ribbon added to the Word 2007 file which will be populated from some items. I created a add-in using this and pressing F5 opens Word file contains the newly added custom ribbon. But I save that word file and open that again and It does not have that newly added custom ribbon. I am sure I am missing something here.Could anybody throw some light?
I save that word file and open that again
Are you opening it again outside of the Word instance running from Visual Studio? Your add-in might only be available when you're debugging the project.
Check if an entry for your add-in exists in the registry, under:
HKLM\Software\Microsoft\Office\Word\Addins\.
If no entry exists, I've found that the easiest way to deploy a VSTO add-in to your machine is to create a setup project for it in Visual Studio.