How to Fix VSTO Excel Add-In Interface Misalignment in Microsoft 365
Question details
The user's VSTO Excel add-in interface is misaligned or displaying incorrectly in Microsoft 365, despite functioning normally in other versions of Excel.

- Product
- Microsoft 365 (Excel), Visual Studio (VSTO)
- Device & OS
- not provided
- Scenario
- Running a custom Visual Studio Tools for Office (VSTO) add-in within the Microsoft 365 Excel environment.
- Observed behavior
- The interface elements and controls of the add-in are misaligned, incorrectly sized, or rendering improperly on the screen.
Ensure that your Windows display scaling settings are set to exactly 100% across all connected monitors to rule out basic DPI conflicts before modifying compatibility options or code.
Consult the Visual Studio Developer Community
Since VSTO interface misalignment is fundamentally a code or resource scaling issue, consulting the developer community is the most effective approach for a permanent fix.
Interface misalignments in VSTO add-ins running on Microsoft 365 often stem from how newer Excel versions handle dynamic DPI scaling and WinForms rendering. Standard Excel troubleshooting steps are rarely sufficient to resolve these underlying code-level behaviors.
To find a lasting solution, developers must often update how the add-in handles layout scaling dynamically.
Document your exact Microsoft 365 build number, Windows OS version, and the active display scaling percentage (e.g., 125% or 150%) from your Windows Display Settings.
Collect the specific C# or VB.NET code snippets responsible for interface rendering, including any custom Ribbon XML or UserControl layout properties.
Navigate to the official Visual Studio Developer Community forums. Create a new thread under the VSTO or Office Development category, attaching your details and screenshots of the affected controls.

Adjust Excel DPI Compatibility Settings
Modifying Windows compatibility settings to override Excel's high DPI scaling behavior can sometimes force older VSTO add-ins to render correctly.
Experience Seamless Spreadsheet Management with WPS Office
Tired of troubleshooting complex VSTO add-in errors and version compatibility issues in Microsoft 365? WPS Office offers a lightweight, highly compatible, and free alternative. It supports standard VBA macros and provides a familiar interface, ensuring your spreadsheet tasks run smoothly without heavy development overhead.
- 1. Download and Install: Visit the official WPS website to download the free installation package tailored for your operating system.
- 2. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing Microsoft Excel files seamlessly without losing your data or formatting.
- 3. Automate with Ease: Use the built-in VBA environment in WPS Office to manage standard macros as a simpler, more stable alternative to complex VSTO add-ins.

Frequently Asked Questions
Why does my VSTO add-in look fine in Excel 2016 but misaligned in Microsoft 365?
Microsoft 365 frequently updates its rendering engine to better support high DPI monitors and dynamic scaling. VSTO add-ins designed with static layouts or older WinForms controls often struggle to adapt to these modern scaling changes, resulting in visual misalignments.
Can I fix VSTO interface scaling issues without rewriting the code?
Sometimes. You can try adjusting the DPI compatibility settings for the Excel application itself. By right-clicking the Excel executable, going to Properties > Compatibility > Change high DPI settings, and overriding the scaling behavior to 'System', you may force the OS to handle scaling instead of the application.
Are Visual Studio Tools for Office (VSTO) add-ins supported in WPS Office?
No, VSTO is a proprietary Microsoft development framework specifically built for Microsoft Office desktop applications. However, WPS Office fully supports standard VBA macros and provides its own robust APIs for automation and customized add-in development.




