Learn TypeScript: Automate Excel Online with self-written add-ins

[ad_1]
Microsoft Excel’s free online version contains many of the same functions and diagram tools as the desktop version. With Excel Online you can collaborate with others in real time in your browser, collect answers from online surveys and calculate numbers with functions. What is not so easy in the online version, however, is expanding and controlling the spreadsheet with Visual Basic for Applications (VBA). This requires Windows – as well as add-ins that were written with Visual Studio Tools for Office (VSTO) in VB.NET or C #.
The free version of Excel Online already masters many functions that are also known from the desktop edition, such as data preparation in diagrams.

(Image: Screenshot / Christian Imhorst)
Microsoft introduced the Excel JavaScript API as a solution in Office 2016. This means that users can not only automate tasks in the browser in the online version – the add-ins also work in the desktop version. With the API you can create and manipulate objects in Excel using TypeScript. We will show you step by step how to create such an add-in in Excel. The project requires basic programming knowledge in JavaScript to create dynamic websites. TypeScript is a superset of JavaScript and offers the convenience of a modern programming language. Many TypeScript constructs may be familiar to C # developers. No wonder: both languages ​​were promoted by one and the same chief developer: Hejlsberg is different. The TypeScript result is translated into JavaScript, which in turn runs in the browser. Any JavaScript code is also valid TypeScript code. Common JavaScript libraries such as jQuery can therefore also be used in TypeScript, as we will show using our small programming examples. In Excel you can develop add-ins with both languages, with the focus Many examples from the online community are mostly based on TypeScript.
  • Access to all heise + content
  • exclusive tests, advice & background: independent, critically well-founded
  • Read c’t, iX, Technology Review, Mac & i, Make, c’t photography directly in your browser
  • register once – read on all devices – can be canceled monthly
  • first month free, then 9.95 € per month
  • Weekly newsletter with personal reading recommendations from the editor-in-chief
Start FREE month Start your FREE month now Already subscribed to heise +? Sign up and read Register now and read articles right away More information about heise +
To home page
[ad_2]

Share:

Facebook
Twitter
Pinterest
LinkedIn

Leave a Reply

Related Posts

Can You Snort Marijuana

Can You Snort Marijuana Simply put, snorting marijuana is not a smart or safe way to use it. Most people smoke, vape, or eat edibles

Can Marijuana Cause Diarrhea

Can Marijuana Cause Diarrhea Simply put, using marijuana can sometimes cause stomach problems like diarrhea, but it’s not completely clear if one directly causes the

Drying Marijuana in Paper Bags

Drying Marijuana in Paper Bags Key Takeaways Discover why using paper bags is advantageous for drying marijuana Learn essential steps and expert techniques for efficiently

Can You Vacuum Seal Marijuana

Can You Vacuum Seal Marijuana You can totally vacuum seal your weed, no problem. Vacuum sealing helps keep your stash fresh and potent by getting