|Office 2016 For Developers|
|Written by Kay Ewbank|
|Monday, 05 October 2015|
The latest version of Microsoft Office was recently released with not much to cheer about for developers. The only change is the revamping and strengthening of the Office.js APIs so they’re more consistent across the different versions for Windows, Mac and mobile devices.
As anyone who’s developed for Office knows, Microsoft more or less got things right at one point when Visual Basic for Applications (VBA) gave you access to all the objects within Office, and customizing Office was easy. People who’d never developed could record their actions then edit the VBA, and the whole thing worked well.
VBA is still present in Office 2016, but it’s treated rather like your embarrassing uncle who drinks too much and tells jokes in bad taste at family celebrations – it is shoved right at the back of the room in a dark corner where Microsoft hopes no-one will see it.
Another embarrassing old relative is also still there in the form of Visual Tools for Office (VSTO), which gives you a way to create apps using .NET languages to create applications that use the features of the Office suite. VSTO has been mothballed since 2010, but still works with Office 2016.
So what would Microsoft like us all to use if we need to customize Office?
Office Add-ins is the main answer. This is what used to be called Apps for Office.
The Office Dev Center Getting Started document says that:
In practical terms this means it appears as a Task Pane panel in the Office app or document.
One improvement in this version is that the add-ins now work for some Office apps if you’re using Office on an iPad, and there’s support for Outlook 2016 for the Mac. In a blog post Microsoft says:
“we are currently working through completing support across Office 2016 for Mac, Office Mobile on Android and Windows 10.”
The roadmap for completing support for Excel and Word on the Mac is Q1 2016. Other missing elements are due to be added for Office Online and Office for iOS in Q4 2015 and Q1 2016. Android users, don’t hold your breath.
There’s an equivalent set of Excel Office.js APIs that you can use to work with named items, worksheets, ranges, formatting, tables, and charts. It’s still a long way from what was there in Office VBA, but it’s not as limited as it was until now.
One new concept that has been added is that of ExecuteAsync. In the blog post the Office team says the addition was needed to improve performance when interacting with Excel objects, explaining:
“When you interact with Excel objects you’re going across process, and that can be rather slow to do – especially in the case of Excel Online, where cross-process is also cross network. We don’t want to hang the thread or UX of either Excel or the add-in while that’s happening.”
or email your comment to: email@example.com
|Last Updated ( Monday, 05 October 2015 )|