Why Excel Macros Do Not Work on iPad and How to Run Them
Question details
The user is attempting to run VBA macros on an iPad but finds that the macros fail to execute or are completely disabled.

- Product
- Microsoft Excel
- Device & OS
- iPadOS / iOS
- Scenario
- Opening and trying to execute a macro-enabled workbook (.xlsm) using the Excel mobile app on an Apple tablet or smartphone.
- Observed behavior
- Excel VBA macros are unsupported and cannot run in the Excel app for iPad, iPhone, or Excel for the web.
Ensure you have access to a Windows or Mac desktop computer, as running traditional VBA macros requires a full desktop spreadsheet environment. Verify that your file is saved in a macro-enabled format, such as .xlsm or .xlsb.
Open the Macro-Enabled Workbook on Desktop Excel
Since VBA is not supported on mobile operating systems, you must transition to a desktop computer to execute your macros.
VBA (Visual Basic for Applications) relies on legacy desktop architectures that are incompatible with the sandboxed environments of iOS and iPadOS. Because of this, Microsoft restricts macro execution entirely to Windows and macOS desktop applications.
From your iPad, save or upload your macro-enabled workbook to a cloud service like OneDrive, iCloud, or Google Drive so it can be accessed from another device.
Move to a Windows or Mac computer and open the full desktop version of Microsoft Excel.
Open the .xlsm file you saved to the cloud. When prompted by the yellow security warning bar at the top of the sheet, click 'Enable Content' to allow the VBA macros to run.

Migrate Automation to Office Scripts
If you absolutely must run automations on an iPad, you can rebuild your macros using Microsoft's modern Office Scripts feature.
Use WPS Office on PC for Seamless Macro Support
Since iPads cannot run VBA macros due to Apple's system restrictions, switching to a desktop environment is mandatory. WPS Office for PC provides an excellent, free alternative to Microsoft Office, complete with robust VBA support to handle your macro-enabled workbooks effortlessly.
- 1. Download WPS Office: Install WPS Office on your Windows computer from the official website.
- 2. Open the workbook: Launch WPS Spreadsheets and open your .xlsm file synced from your iPad.
- 3. Enable and run macros: Click to enable macros when prompted, and run your VBA scripts seamlessly.

Frequently Asked Questions
Will VBA macros ever be supported on the Excel iPad app?
It is highly unlikely. Apple's strict sandboxing rules for iOS and iPadOS prevent applications from running the deep system-level code that traditional VBA requires. Microsoft is focusing its mobile automation efforts on Office Scripts instead.
Can I bypass the iPad app and run macros in the Safari browser?
No. Excel for the web, whether accessed through Safari on an iPad or Edge on a PC, does not have the necessary engine to run VBA macros. You can only view the data, but the macro buttons will not function.
How can I tell if my Excel file contains macros?
Look at the file extension. Standard Excel workbooks end in .xlsx, while macro-enabled workbooks end in .xlsm or .xlsb. If you see these extensions, the file contains VBA code that requires a desktop application to run.




