VBA & Macro Problems

Can Excel VBA Macros Run in Power Apps or Android? Solutions & Alternatives

Elise WilliamsElise Williams Nov 3, 2026 869 views

Question details

Determine whether traditional Excel VBA macros can be executed within Power Apps or the Excel mobile app on Android, and find viable workarounds.

Can Excel VBA Macros Run in Power Apps or on Android?
Product
Microsoft Excel, Power Apps
Device & OS
Android, iOS, Web
Scenario
Attempting to trigger or execute automated Excel scripts from a mobile device or a custom Power Apps application.
Observed behavior
Excel VBA macros fail to run or are completely disabled when opened in Power Apps or on mobile operating systems like Android and iOS.
Before you start

Before proceeding, verify that your Microsoft 365 subscription includes access to Power Automate and the Automate tab (Office Scripts), as these cloud features are necessary to replace desktop VBA.

Solution 1Recommended

Convert VBA to Office Scripts for Web and Mobile Support

Office Scripts use TypeScript/JavaScript and are natively supported across Excel on the web, iOS, and Android.

VBA macros rely on the desktop version of Excel and the Windows or macOS operating system architecture. Office Scripts, on the other hand, are cloud-based and specifically designed to work anywhere, including mobile devices.

1
Open Excel on the Web

Log into your Microsoft 365 account via a web browser and open your target workbook in Excel Online.

2
Navigate to the Automate Tab

Click on the 'Automate' tab located in the main ribbon interface.

3
Create a New Office Script

Select 'New Script' to open the Code Editor panel. You will need to rewrite your existing VBA logic using TypeScript.

4
Run on Your Android Device

Save the newly created script. Open the same workbook using the Excel app on your Android or iOS device, navigate to the Automate tab, and tap to run the script.

Convert VBA to Office Scripts for Web and Mobile Support
Language Transition Requirement: Because Office Scripts use TypeScript rather than Visual Basic, you cannot simply copy and paste your old VBA code. The logic must be rewritten.
Free Microsoft Office alternative

Need a Reliable Desktop Suite for Advanced VBA Macros?

While VBA macros are not supported on mobile devices or cloud apps like Power Apps, desktop users still need a robust environment for their complex macro-enabled spreadsheets. WPS Office provides native desktop support for VBA on Windows, delivering full compatibility with Microsoft Excel formats in a lightweight, free-to-use application.

  1. 1. Download and Install WPS Office: Visit the official WPS website to download the free installation package for your Windows PC.
  2. 2. Open Your Macro-Enabled File: Launch WPS Spreadsheet and open your existing .xlsm files directly.
  3. 3. Enable Macros and Run: Accept the security prompt to enable macros, and run your VBA code seamlessly on your desktop.
Native support for executing and editing Excel VBA (.xlsm) files on WindowsSeamless format compatibility for reading and saving Microsoft Excel documents (.xlsx, .xls)Lightweight installation with an intuitive, familiar user interfaceFree alternative to costly subscription models for desktop productivity
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I run VBA macros on Excel for Android or iOS?

VBA (Visual Basic for Applications) was designed specifically for Windows and macOS desktop environments. Mobile operating systems lack the underlying COM architecture and necessary system libraries to execute traditional VBA code.

Can I use Power Apps to run macros on a locally stored desktop Excel file?

No, Power Apps operates in the cloud and cannot directly trigger local desktop VBA macros. You must migrate your logic to an Office Script and host the file on SharePoint or OneDrive to automate it via Power Automate.

Are Office Scripts the exact same thing as VBA?

No. Office Scripts are written in TypeScript (a modern superset of JavaScript) and run securely in the cloud across all platforms. VBA is an older, desktop-bound language. You will need to rewrite your macros to utilize Office Scripts.

Does WPS Office support running VBA macros on Android?

Similar to Microsoft Excel, WPS Office supports VBA exclusively on its desktop platforms (such as Windows). Mobile versions of the app do not execute VBA macros due to identical mobile operating system limitations.