office add-ins development
410 TopicsSupport split-button controls in add-in ribbon commands (parity with VSTO)
Office Add-ins (Office.js) currently do not support a split-button control in custom ribbon commands. VSTO/COM add-ins have long supported split-Button (a primary action button combined with a dropdown of related actions), but the add-in command model only offers Button and Menu control types. This is a significant gap for teams migrating VSTO solutions to Office.js. Current behavior In both the XML manifest and the unified manifest, add-in commands support: Button: executes a single action or opens a task pane Menu: a dropdown that lists actions, but the top-level control itself cannot execute an action There is no control that combines both behaviors. Expected behavior Provide a Split-Button control type that: Has a primary button portion that executes a default action (function command or show task pane) when clicked. Has an arrow/dropdown portion that opens a menu of related items. Optionally allows the default action to be updated at runtime (for example, the last-used item becomes the default, like the Font Color and Highlight buttons in Word and Excel). Works with existing contextual tab and dynamic ribbon APIs (Office.ribbon.requestUpdate) for enabling/disabling the control and its items. Why this matters VSTO migration parity: many enterprise VSTO add-ins rely on split buttons. Without them, migrated UIs need extra buttons or menus that add clicks and break familiar workflows. Ribbon space: split buttons group related commands without consuming extra ribbon space. Consistency with Office UI: built-in commands (Paste, Font Color, Insert Table, etc.) use split buttons extensively, and add-ins cannot match that native look and feel. Current workarounds and their drawbacks Separate Button + Menu: takes twice the space and doesn't look or behave like a native split button. Menu only: requires an extra click for the most common action. Task pane UI: moves commands out of the ribbon, which is worse for frequent actions. Platforms: Office on Windows, Office on Mac, Office on the web Applications: Excel, Word, PowerPoint, Outlook References Add-in commands docs: https://learn.microsoft.com/office/dev/add-ins/design/add-in-commands VSTO Ribbon XML: https://learn.microsoft.com/visualstudio/vsto/ribbon-xml10Views0likes0CommentsAbility to Assign Custom Properties or Unique IDs to Individual Cells
Summary I'd like to request support for assigning custom metadata — such as unique IDs or arbitrary key-value pairs — directly to individual cells in Excel using the Office.js API. Why This Matters Currently, developers must rely on workarounds like named ranges, hidden metadata sheets, or cell notes to simulate per-cell identifiers. These approaches are either limited, fragile, or not scalable for large applications. Native support for cell-level metadata would unlock powerful use cases: Dynamic form builders Cell-level validation engines Workflow tracking Data lineage and audit trails Integration with external systems via stable cell references Proposed API Concept range.customProperties.add("id", "cell_001"); const id = range.customProperties.getItem("id").value; Or even: range.metadata = { id: "cell_001", status: "approved", validator: "admin" }; Benefits Eliminates reliance on fragile naming conventions Enables scalable, structured metadata management Improves developer experience and app robustness Alternatives Considered Named ranges: limited and global scope Notes/comments: visible to users, not structured Hidden metadata sheets: hard to maintain Custom XML parts: complex and not cell-specific Request Please consider adding support for cell-level metadata or custom properties in a future version of Office.js. Even a lightweight key-value store per cell would be a game-changer.823Views100likes3CommentsProvide an Official Offline Distribution Method for Office.js (Alternative to CDN)
According to the Microsoft documentation on accessing the Office JavaScript API library (https://learn.microsoft.com/en-us/office/dev/add-ins/develop/understand-the-javascript-api-for-office#access-the-office-javascript-api-library), the only official way to include Office.js in Office Add-ins is to load it from the CDN. While this works well for most scenarios, it creates a significant limitation for organizations that operate in offline or highly restricted network environments where external CDNs are not accessible. Previously, the BANNEDUSERNAME/office-js npm package (https://www.npmjs.com/package/%40microsoft/office-js) allowed developers to bundle Office.js with their add-ins, making offline deployments possible. Since this package has been deprecated, there is no longer an officially supported way to distribute Office.js in these environments. I would like to request one of the following: Bring back an officially supported npm package for Office.js. Provide another supported mechanism for bundling or self-hosting Office.js in offline environments. Publish official guidance for deploying Office Add-ins in air-gapped or disconnected networks. Supporting offline deployments would enable organizations with strict security requirements—such as government agencies, defense organizations, healthcare providers, and enterprises with isolated networks—to continue developing and deploying Office Add-ins using supported Microsoft solutions. This would greatly improve the developer experience and make the Microsoft 365 Office Add-ins platform accessible to a broader range of enterprise customers.368Views13likes2CommentsAdd SoftBlock to SendModeOverride
Currently the Smart Alerts feature of Outlook Web Add-ins has, Office.MailboxEnums.SendModeOverride, which only supports overriding with PromptUser. This requires the manifest to be configured with SoftBlock for the override to be useful. It would be more desirable to configure the manifest with PromptUser and then override with SoftBlock. This would be used in situations where the add-in was run and detects a condition that requires corrective action before the message is sent. The motivation for having PrompUser set in the manifest is to allow users to send emails more easily when they are having network connectivity issues or working in Outlook offline mode. It's understood that this creates opportunities where a message that would have been blocked is allowed to be sent due to circumstances that prevent the addin from successfully running. This is an acceptable tradeoff.Native Linux Office365 Apps
This is something that has been raised in the past on other platforms: https://answers.microsoft.com/en-us/msoffice/forum/all/office-365-on-linux/262e3066-a71e-4af7-9600-af9f8d0746b6 Opening it again here as it would be really nice to have linux native versions of Word, Excel, Outlook etc. More and more MS software is getting ported to Linux at the moment: Teams, VSCode, MSSQL etc. We're standarised on MSOffice here in work, but linux is much smoother for website development. I'm currently running software through wsl, but that is slow. Would be lovely to use Fedora or Ubuntu and be able to use Office365 on there on the odd occaisions I use them.19KViews36likes9CommentsLet Office Add-in sign-in on Mac use passkeys (run auth dialogs in ASWebAuthenticationSession)
Office.context.ui.displayDialogAsync on Word, PowerPoint and Excel for Mac runs in a WKWebView. Word's associated-domains entitlement lists webcredentials: only for Microsoft's sign-in hosts (login.microsoftonline.com / .us / .cn, login.microsoft.com; observed in Word 16.113.3). Any other identity provider cannot use passkeys or security keys in an add-in dialog. Google, for example, shows a broken "Make sure Bluetooth is on, and your devices are close to each other" screen. Organizations that enforce phishing-resistant MFA (FedRAMP 20x KSI-IAM-01, OMB M-22-09) with a non-Microsoft identity provider therefore cannot sign in to add-ins on Mac at all. The only workaround, finishing sign-in in the system browser via openBrowserWindow, has no safe channel back to the add-in (RFC 10027, cross-device session phishing). Ask (preferred): run add-in auth dialogs in ASWebAuthenticationSession, for example as a displayDialogAsync option. It supports passkeys and the user's existing browser sessions, and macOS returns the result only to the app that opened it, so Office can hand it to the add-in exactly as messageParent does today. This mirrors how Microsoft's own apps now route external-IdP passkeys through the system browser (Microsoft Entra blog, "Sign in to Microsoft apps with passkeys from external identity providers", Sep 29, 2026). Alternative: obtain the com.apple.developer.web-browser.public-key-credential entitlement for the dialog host, so WebAuthn works for any relying party inside the existing dialog. Previously closed as feature requests on GitHub: OfficeDev/office-js issues #6822 and #5284.Enable more pivot table data sources in the ExcelAPI
Request to enable external data sources for pivot tables to be set via the ExcelAPI, a capability that is already present in Excel when creating pivot tables manually. Currently the only way to set the data source for a pivot table seems to be the `Excel.PivotTableCollection.add()` method which only allows for a local range or table to be passed. This limits the max size of the source data to Excel's worksheet limit of ~1M rows x ~16k columns. May of our users are using datasets significantly larger than that.Feature Request: Expose rowOutlineLevel as readable/writable on Excel.Range in office.js
SUMMARY Excel VBA has long supported Range.OutlineLevel as a read/write property for inspecting and setting row or column grouping levels. Office.js currently has no functional equivalent. We are requesting that rowOutlineLevel and columnOutlineLevel be exposed as functional read/write properties on Excel.Range. CURRENT OFFICE.JS LIMITATION Office.js provides Range.group() and Range.ungroup() starting with ExcelApi 1.9. However, there is currently no reliable way to read or restore the outline/grouping level of a row or column. Example: await Excel.run(async (context) => { const range = context.workbook.worksheets.getActiveWorksheet().getRange("A5"); range.load("rowOutlineLevel"); await context.sync(); console.log(range.rowOutlineLevel); // undefined range.rowOutlineLevel = 1; await context.sync(); // No error, but no effect }); We verified this across ExcelApi requirement sets through 1.21, ExcelApiDesktop 1.1, and Preview APIs. rowOutlineLevel returns undefined after load() and context.sync(). Setting rowOutlineLevel has no effect. The same behavior occurs when using getEntireRow(). rowOutlineLevel and columnOutlineLevel are not exposed in the documented requirement sets. VBA / COM PARITY Excel VBA already provides this functionality through Range.OutlineLevel. Read example: level = Worksheets("Sheet1").Rows(2).OutlineLevel Set or restore example: Worksheets("Sheet1").Rows(2).OutlineLevel = 1 VBA also provides Worksheet.Outline, including ShowLevels, SummaryRow, and SummaryColumn. Capability comparison: Read grouping level: VBA: Range.OutlineLevel Office.js: Not available Set grouping level: VBA: Range.OutlineLevel = n Office.js: Not available Apply grouping: VBA: Range.Group Office.js: Range.group() Remove grouping: VBA: Range.Ungroup Office.js: Range.ungroup() Query or control outline structure: VBA: Worksheet.Outline Office.js: No equivalent BUSINESS IMPACT Our Excel add-in manages Multi-Dimensional Report (MDR) sections that use row grouping for collapse and expand behavior. During refresh and mapping operations, we need to detect existing row grouping and outline levels and restore the grouping if operations such as range copies remove it. Without readable outline levels, we cannot determine which rows are grouped or at what level. Without writable outline levels, we cannot reliably restore the previous structure. Our current workaround requires users to manually fix grouping in Excel. This creates a poor enterprise experience and is a regression compared with our previous VBA-based automation. REQUESTED CHANGES Make rowOutlineLevel readable on Excel.Range so that it returns the actual outline level, such as 1, 2, or 3. Make rowOutlineLevel writable so that grouping levels can be restored programmatically. Provide equivalent read/write support for columnOutlineLevel. As a stretch goal, expose a Worksheet.outline API similar to VBA's Worksheet.Outline, including showLevels(), summaryRow, and summaryColumn. REFERENCES VBA Range.OutlineLevel: https://learn.microsoft.com/en-us/office/vba/api/excel.range.outlinelevel VBA Outline: https://learn.microsoft.com/en-us/office/vba/api/excel.outline Office.js Range.group() and Range.ungroup():https://learn.microsoft.com/en-us/javascript/api/excel/excel.range Office.js Preview APIs: https://learn.microsoft.com/en-us/javascript/api/requirement-sets/excel/excel-preview-apis ExcelApiDesktop 1.1: https://learn.microsoft.com/en-us/javascript/api/requirement-sets/excel/excel-api-desktop-1-1-requirement-set Office.js Range Grouping:https://learn.microsoft.com/en-us/office/dev/add-ins/excel/excel-add-ins-ranges-group70Views0likes0CommentsWord on Mac: bring Range.insertText() performance in line with Windows and Web
Summary Word.Range.insertText(text, "Replace") followed by context.sync() takes ~300 ms on Word for Mac desktop, versus ~4.5 ms on Windows and ~16 ms on Word on the web running on the same Mac. Full repro and measurements: OfficeDev/office-js#6721. Why it matters The cost is per round trip, not per character, so it scales with the number of edits. Add-ins that apply many individual range replacements — proofreading, terminology enforcement, review passes, template population — are fast on Windows and unusable on Mac from the exact same codebase. We build a writing-assistance add-in where a single correction pass means hundreds of replacements, and this gap is what currently prevents us from shipping it to our Mac users. Why we don't think this is expected behaviour This was filed as a bug and we were told it's by design and belongs here as an idea. We'd like to challenge that: Word on the web, in a browser, on the very same Mac, is roughly 19x faster than the native Mac host. That rules out hardware, macOS, and the general cost of the Office.js bridge, and points at the Mac host's insert/sync round trip specifically. What we're asking for Bring Range.insertText() round-trip latency on Mac into the same order of magnitude as Windows and the web. Failing that, publish the supported pattern for applying many replacements on Mac without paying the per-sync()cost. Document the current Mac performance characteristics in the Office.js docs.Office.js provides no way to detect unsupported APIs within supported requirement sets
Problem Statement Currently, the only documented mechanism to check for annotations support is Office.context.requirements.isSetSupported('WordApi', '1.8'). However, on perpetual / non-subscription Office builds (e.g., Office 2021, Office 2024, LTSC), isSetSupported('WordApi', '1.8') evaluates to true, yet calling document.getAnnotations() immediately throws a runtime error (NotImplemented / GeneralException). There is currently zero way for an add-in to detect whether the user is on a perpetual build or whether getAnnotations() will fail before actually calling it. Why This Is Unacceptable Broken API Contract: isSetSupported() is advertised as the canonical capability-detection mechanism. Gating individual functions behind license tiers while marking the entire requirement set as "supported" defeats the purpose of requirement sets and leads to false positives. Impossible to Build Resilient UI: Add-ins cannot hide, disable, or adapt UI elements conditionally on startup because there is no API to check if getAnnotations (or the underlying license tier) is supported. No Viable Pre-Check: Developers cannot safely query capabilities upfront. Relying on blind runtime failures (try/catch on first invocation) produces broken user experiences, unneeded error telemetry, and brittle add-in logic. Required Solution Office.js must provide a reliable, deterministic way to detect whether an individual API or feature is usable before invoking it. We need Microsoft to implement at least one of the following: Method / Feature-Level Detection: Provide a granular capability check, for example: Office.context.requirements.isMethodSupported('Word.Document.getAnnotations') -> boolean or Word.isFeatureSupported('Annotations') -> boolean License / SKU Awareness: Expose host license properties on the context object so add-ins can identify perpetual/non-subscription environments upfront, for example: Office.context.license.isSubscription -> boolean or Office.context.license.skuType -> 'perpetual' | 'subscription' Reference GitHub Issue: https://github.com/OfficeDev/office-js/issues/570180Views0likes0Comments