How to Use Excel ActiveX and Form Controls with OneDrive
Question details
The user wants to know how to successfully use and interact with macros, ActiveX controls, and form controls in Excel files that are stored on and shared via OneDrive.

- Product
- Microsoft Excel, OneDrive
- Device & OS
- not provided
- Scenario
- Accessing and editing advanced Excel workbooks containing interactive controls and VBA macros stored in a cloud environment.
- Observed behavior
- ActiveX controls, macros, and form controls do not function or appear missing when the shared OneDrive file is opened in Excel for the web.
Ensure you have the Microsoft Excel desktop application installed on your computer, as these advanced features cannot be executed within a web browser environment.
Open the OneDrive File in the Excel Desktop Application
To fully utilize ActiveX controls, form controls, and macros, you must open the shared OneDrive file using the full desktop version of Excel instead of Excel for the web.
Excel for the web is optimized for lightweight editing and real-time collaboration. Complex programming features, including ActiveX controls, form controls, and VBA macros, are intentionally unsupported in the web environment for security and performance reasons.
While you can safely store and share these macro-enabled files (.xlsm) through OneDrive, any user who needs to interact with the controls must transition from the browser view to the local desktop application.
Navigate to your OneDrive account in your web browser and click on the Excel file containing the ActiveX or form controls. The file will initially open in Excel for the web.
Locate the ribbon at the top of the screen in Excel for the web. Click on the 'Viewing' or 'Editing' dropdown button, then select 'Open in Desktop App'.
Alternatively, open your local Excel desktop application, go to 'File' > 'Open', select your connected OneDrive account, and browse for the file to open it directly without using the web browser.

Edit Complex Spreadsheets Seamlessly with WPS Office
Since Excel for the web cannot run ActiveX controls or macros, switching to a powerful desktop alternative can streamline your workflow. WPS Office offers excellent compatibility with Microsoft Office formats and provides robust support for advanced spreadsheet features without the hefty subscription fees.
- 1. Download and Install: Download WPS Office for free from the official website and complete the quick installation process on your device.
- 2. Sync or Download Your File: Download your macro-enabled spreadsheet from OneDrive to your local computer, or access your local OneDrive sync folder.
- 3. Open in WPS Spreadsheets: Launch WPS Spreadsheets, click 'Open', and select your file to interact with its advanced features in a fully supported desktop environment.

Frequently Asked Questions
Why do ActiveX controls disappear when I open my Excel file on OneDrive?
ActiveX controls do not actually disappear or get deleted; they are simply hidden or disabled because Excel for the web does not support rendering them. Opening the exact same file in the Excel desktop application will restore full visibility and functionality.
Can I edit VBA macros in Excel for the web?
No, Excel for the web does not support creating, editing, or running VBA macros. You must use the desktop version of Excel to work with macro-enabled workbooks (.xlsm).
Will form controls work if I share my OneDrive link with someone else?
If the recipient opens the shared link in their web browser, the form controls will not be active. They must also choose the 'Open in Desktop App' option to use those specific controls locally.
Are there any interactive controls supported in Excel for the web?
Excel for the web supports basic data validation dropdown lists and some fundamental interactive elements. However, advanced developer form controls (like spin buttons, scroll bars, and checkboxes) and ActiveX controls strictly require the desktop application.




