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
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
Create custom contextual tabs on the ribbon
Learn how to create a contextual tab that displays on the ribbon in response to the context of the Office UI.
Last updated on: February 5, 2025
Office Add-in that supports Single Sign-on to Office, the add-in, and Microsoft Graph
This sample implements an Office Add-in that uses the `getAccessToken` API in Office.js to give the add-in access to Microsoft Graph data. This sample...
Last updated on: February 5, 2025
Share global data across add-in components
This sample shows how to share data across the ribbon, task pane, and custom functions.
Last updated on: February 5, 2025
Create and explore data types in Excel
Create data types in Excel workbooks and explore existing data types in Excel workbooks.
Last updated on: February 5, 2025
Save custom settings in your Office Add-in
This sample shows how to save custom settings in Office Add-in.
Last updated on: February 5, 2025
Manage ribbon and task pane UI, and run code on doc open
This sample shows how to create contextual ribbon buttons that are enabled based on the state of your add-in. It also shows how to use the Office.js API to show or hide the task pane. This sample also demonstrates how to run code when the task pane is closed, such as on document open.
Last updated on: February 5, 2025
Use keyboard shortcuts for Office Add-in actions
This sample shows how to add keyboard shortcuts to your Office Add-in.
Last updated on: February 5, 2025
Create an Office Add-in that displays hello world
Create a simple Office Add-in that displays hello world.
Last updated on: February 5, 2025