Adding a macro from PowerPoint add-in to ribbon - powerpoint

It's possible to add macros from a macro-enabled PowerPoint (pptm) presentation from the ribbon by right clicking in the ribbon and selecting Choose commands from: Macros.
I want this to be available at any time, so I've saved the pptm file as an add-in (ppam) and loaded the add-in.
However, I find that it is not possible to add the macro from the add-in in the ribbon. How can this be done? Do I somehow need to register all available Subs from Auto_Open or similar with something like:
Sub MyCommand()
MsgBox "This worked"
End Sub
Sub Auto_Open()
' Magic code allowing me to add the above to the ribbon
End Sub
Thanks!
Troels

You need to add special XML code to the PPTM file to make the ribbon mods you want and hook the button clicks to the VBA routines in the file. Google "Ribbon XML" (without quotes) for starters. There are a couple of decent free apps that help create/edit Ribbon XML.
The free Office RibbonX Editor by Fernando Andreu, available on GitHub is a good place to start:
https://github.com/fernandreu/office-ribbonx-editor/ (or for the latest release: https://github.com/fernandreu/office-ribbonx-editor/releases/latest )
Ron DeBruin has a wealth of information about using RibbonX here:
https://www.rondebruin.nl/win/s2/win001.htm
My bible on the subject has been RibbonX by Robert Martin, Ken Puls and Teresa Hennig (Wiley is the publisher). Available on Amazon.

Related

NSIS Uninstall Feedback Dialog with Radio Buttons

I am trying to show a simple dialog before uninstall in NSIS. It consists of several predefined radio buttons (reasons for uninstalling), none of them checked initially. Uninstallation cannot continue until a user selects one of the radio buttons.
As a bonus, ideally I would like to have a custom reason text field too (toggle-able via last radio button). As well as 2 more text fields for custom text and email.
Then I need to take selected value(s) (checked radio button) as well as text fields data and either append it to my predefined URL to which I make a GET request using InetC or similar plugin before uninstaller exits; or laternatively construct a POST request to a predefined URL using InetC or similar plugin. I cannot figure out how to create such a dialog page. Any help would be appreciated.
What I am looking for:
First, you should get familiar with nsDialogs to create the interface according to your needs. Since nsDialogs is a function, you would then can call it as a custom page.
You can use my tool Visual & Installer (www.visual-installer.com) for Visual Studio 2005 - 2015 to fast write the NSIS code.
(If you are "writing" the installer - I assume you have some experiences with nsDialogs).
Also there are some other tools like NSIS Dialog Designer (http://forums.winamp.com/showthread.php?t=329801) which can help you and generate lot of code for you.
This tool is GUI based - designer similar to Visual Studio designer - but remember: the result is still the scripts!

Excel-Addin with visible form

I have a query on the usage of windows form in excel add-in, application level.
Objective Statement:
Display customized windows form control, similar to a way a chart is being inserted into excel
Custom Pane
I have tried custom pane add-in but it seems to be on a entire workbook level, i need something on a worksheet level
Task Pane
I can't seem to use the task pane in application add-in for excel
Windows Form Control
When I click on a cell in excel i will lose focus to the windows form, i will need the windows to be together with the worksheet, but i can't use showdialog.
Thanks for the help in advance.
From your answer it is hard for me to figure out if you we are looking at a code solution here or something more high level, so I am going to assume that you are looking for a code solution, please correct me if I am wrong.
Have you considered using an OLE object or ActiveX?
There is an example from Microsoft here, how to develop an ActiveX control. (Here is some other walkthrough that I found helpful).
Just to give you a hint how it (the example mentioned above) looks like, here is the screenshot of the compiled example that I added onto the excel sheet:
ActiveX control can be added both manually, or by code, so I could imagine that you could also provide a COM Excel Add-in that would add some buttons onto the ribbon, that when pressed, would add the desired controls onto the sheet.

VSTO: Really password-protect & hide MS Excel Worksheets

Is it possible to do the following two things with VSTO VB:
HIDING SHEETS: Prevent users from un-hiding worksheets that they are not meant to. The xlVeryHidden works great but it's almost easily overridden by using another workbook and writing a simple VBA macro to loop through and unhide them all. What is the best way to combat hidden sheets not been shown unless done by the VSTO VB code?
PASSWORD PROTECTING SHEETS: What is the best way to password-protect Excel worksheets in a VSTO VB project? Does VSTO offer any better method than VBA; which is a simple password-protection where the password is saved in an easily accessible XML document? Essentially, I've locked the worksheets only allowing certain ranges to be edited by the end users and they shouldn't be able to edit them.
I am using Visual Studio 2012, working on a MS Office 2013 Excel Workbook at a document-level.
You can set the property Visible to XlSheetVisibility.xlSheetVeryHidden in order to hide the worksheet. Your probably could try to disable macro by via Application.AutomationSecurity property then set it to msoAutomationSecurityForceDisable to disable macro.
There's a nice and neat tutorial about how to programmatically hide Excel worksheet. Please don't forget to take a look at it.
You can set your password to password-protect worksheets via Workbook.SaveAs method. Also, if you'd like to check if workbook is password protected via Workbook.HasPassword property. Also you can find this tutorial about how to protect worksheets.

TFS2010 - Link to other work item embedded in text field?

When entering a work item in TFS2010, it's often nice to refer to other tickets in the text free fields (either description or Acceptance Criteria field).
Most other ticket tracking software I have used automatically creates links/hyperlinks to other tickets if you put appropriate text into these fields (e.g, Trac, BugTracker.NET, etc).
I understand the link tab, and that you can create relationships there, but it would be lovely to have this feature available and clickable in the other text field.
Does TFS2010 (+ Visual Studio 2010) support something like this? I cannot find for the life of me, a solution.
If you use a rich text edit field (the advanced text field available for work item definitions, with coloring buttons and so on), you can include hyperlinks, also to other workitems etc. This is however a manual exercise to make the hyperlink point to the correct item, there is no automatic recognition of #-tags or whatever to refer to other workitems.
Hi you could use a plugin called TFS Extensions Kit. TEK workitem. This is a Visual Studio extension that allows, besides other features, to open, in Visual Studio, workitems and queries from a Hyperlink.
So you could use the hyperlinks in any field.
Look at the Visual Studio Gallery:TFS Extensions Kit. TEK workitem
You can download a demo from here
Regrads
It's an old question, but if you get here looking for the answer for VSTS the answer is hashtag followed by itemId. Similar to #UserName to reference another user.
Eg. In comments box typing This is a dupe of #2428 will translate into This is a dupe of User Story 2428: Story name where User Story 2428: Story name is a link to the item.

How do you make an add-in for Excel 2011 (Mac)

I would like to add a button to the Ribbon and have it perform some basic tasks when clicked. Is this possible? If so, how?
Thanks in advance.
No, it is not possible. It looks like it is possible, but it is not. The only proper add in for Excel 2011 Mac is provided with Excel, and the ability to show it in Excel Mac's ribbon is apparently hard-coded into the Excel Mac application. None of the XML-based techniques for extending the Excel Mac ribbon work because the ribbon is hard-coded. It looks like the Windows version, but it is nothing like it.
Obviously, it is hard to provide sources for a negative answer. I have researched this topic carefully including contacting Microsoft support, and found that there is no compiler or IDE from Microsoft for this purpose. You can certainly develop in VBA in Excel Mac, and you can make an XLA add-in, but you cannot access the ribbon. You can create little square Mac toolbar icons, just as in Excel 98.
Here are some useful links that will answer your question:
how to customize the ribbon
how to customize the ribbon with vba
how to create an add in (on MSDN)
a clearer tuto on how to create an addin
Please ask a more precise question if you want more precise help.

Resources