Sort by
Newest
Dynamic DPI code samples
Update your ActiveX, COM, VSTO and related Office solutions to handle high DPI and DPI scaling.
Last updated on: February 20, 2025
Techniques to access data from an Office Add-in when offline
See how you can implement localStorage to enable limited functionality for your Office Add-in when a user experiences lost connection.
Last updated on: February 5, 2025
Using storage to share data between UI-less custom functions and the task pane
If you need to share data values between your UI-less custom functions and the task pane, you can use the OfficeRuntime.storage object. UI-less custom...
Last updated on: February 5, 2025
Use a shared library to migrate your Visual Studio Tools for Office add-in to an Office web add-in
Visual Studio Tools for Office (VSTO) add-ins can only run in Office on Windows. By migrating your code to an Office web add-in, you can expand the reach of your add-in to mobile and online platforms. Migrating the code will involve rewriting it in the JavaScript language, and also updating it to use the Office JavaScript APIs. However, you can reduce migration cost by creating a shared library and keeping some of your existing add-in code in its current language.
Last updated on: February 5, 2025
Office Add-in with SSO using nested app authentication (preview)
This sample shows how to implement SSO in an Office Add-in by using nested app authentication.
Last updated on: February 5, 2025
Office Add-in commands
Shows how to use add-in commands in Excel, Word and PowerPoint add-ins.
Last updated on: February 5, 2025
Get OneDrive data using Microsoft Graph and msal.js in an Office Add-in
Learn how to build a Microsoft Office Add-in, as a single-page application with no backend, that connects to Microsoft Graph, finds the first three workbooks stored in OneDrive for Business, fetches their filenames, and inserts the names into an Office document using Office.js.
Last updated on: February 5, 2025
Get OneDrive data using Microsoft Graph and MSAL.NET in an Office Add-in
Learn how to build a Microsoft Office Add-in that connects to Microsoft Graph, finds the first three workbooks stored in OneDrive for Business, fetches their filenames, and inserts the names into an Office document using Office.js.
Last updated on: February 5, 2025
Get Started with the Office Add-ins Development Kit in Excel
This is a basic Excel add-in that sets the background color of a selected range.
Last updated on: February 5, 2025
Custom function sample using web worker
This sample shows how to use web workers in custom functions to prevent blocking the UI of your Office Add-in.
Last updated on: February 5, 2025