Fix Excel VBA Workbook Not Opening on Android App
Question details
The user has an Excel workbook with VBA macros (.xlsm) that works perfectly on a desktop computer but fails to open or run in the Excel app on Android devices.

- Product
- Microsoft Excel
- Device & OS
- Windows/Mac (Desktop), Android
- Scenario
- Trying to open or use a macro-enabled Excel workbook (.xlsm) on an Android mobile device.
- Observed behavior
- The file fails to open or execute on the Android device, even though it functions normally on a desktop PC.
Ensure you have the latest version of your mobile spreadsheet app installed and verify if a copy of the workbook opens on your phone before any VBA code is attached.
Create a Mobile-Compatible Version Without VBA
Since VBA macros are not supported on mobile devices, removing VBA functionality and using standard formulas is the best way to ensure the file opens on Android.
Mobile versions of spreadsheet applications do not include the underlying framework required to compile or execute Visual Basic for Applications (VBA) code. To use the workbook on Android, you must provide a macro-free version.
Launch the original .xlsm workbook on your desktop PC using Microsoft Excel.
Review your VBA macros to determine if their functions can be replaced by standard Excel formulas (such as IF, VLOOKUP) or Data Validation rules.
Go to 'File' > 'Save As', select your desired folder, and choose 'Excel Workbook (*.xlsx)' from the 'Save as type' dropdown menu.
Transfer this new .xlsx file to your Android device via email or cloud storage, then open it in your mobile spreadsheet app.

Fix Potential File Corruption on Desktop
If the file became corrupted while adding VBA code, rebuilding the workbook can resolve underlying structural errors preventing it from opening.
Try WPS Office for Seamless Cross-Platform Spreadsheet Viewing
While VBA macros are restricted on mobile operating systems across all apps, WPS Office provides a lightweight, highly compatible, and free alternative to Microsoft Office. It ensures your standard spreadsheets, complex formulas, and data formatting display perfectly across PC, Android, and iOS devices without lag.
- 1. Download the app: Go to the official WPS Office website or search for 'WPS Office' in the Google Play Store on your Android device.
- 2. Install WPS Office: Tap 'Install' to download the free, lightweight suite to your mobile device.
- 3. Open your spreadsheets: Launch WPS Office and tap on your transferred .xlsx files for a seamless, mobile-optimized viewing and editing experience.

Frequently Asked Questions
Why do VBA macros work on Windows but not on Android?
VBA (Visual Basic for Applications) heavily relies on the Windows or macOS desktop system architecture and COM components to execute. Mobile operating systems like Android and iOS simply do not possess the underlying framework required to compile or run VBA scripts.
Can I run Excel macros on an Android tablet?
No, the Microsoft Excel app for Android tablets does not support VBA macros. To execute macros on a tablet-like device, you would need a Windows-based tablet (such as a Surface Pro) running the full desktop version of Microsoft Office.
How do I save an Excel file without macros?
Open your .xlsm file on a desktop computer, click 'File' > 'Save As', and select 'Excel Workbook (*.xlsx)' from the format dropdown. This action automatically strips all VBA code from the file, resulting in a standard, mobile-friendly spreadsheet.
Are there any mobile spreadsheet apps that support VBA?
Currently, no native mobile spreadsheet apps for iOS or Android support VBA execution due to OS-level restrictions. Alternative scripting languages like Google Apps Script or Office Scripts are sometimes used for web and mobile automation, but traditional VBA remains desktop-only.




