VBA & Macro Problems

Do Excel VBA Macros Run on Android Tablets and Surface Devices?

Phi Hung VoPhi Hung Vo Nov 2, 2026 873 views

Question details

The user wants to know if Excel files containing VBA macros can be opened and executed on smaller portable devices like Samsung Android tablets, Chromebooks, or Windows Surface laptops.

Do Excel VBA Macros Run on Android Tablets and Surface Devices?
Product
Microsoft Excel
Device & OS
Android, Chrome OS, Windows
Scenario
Opening and running macro-enabled Excel workbooks (.xlsm) on portable tablets and lightweight laptops.
Observed behavior
Seeking clarification on whether VBA macros will execute successfully across different operating systems like Android, Chrome OS, and Windows.
Before you start

Check the operating system of your portable device, as VBA macro support in Excel is strictly dependent on the OS platform rather than the physical size or form factor of the device.

Solution 1Recommended

Use a Windows-Based Surface Device for VBA Macros

VBA macros require a full desktop operating system like Windows to function properly.

Visual Basic for Applications (VBA) is built on traditional desktop architecture. This means it only runs on full desktop versions of Microsoft Excel for Windows or macOS. If you are using a portable device like a Surface Pro or Surface Laptop Go running a standard Windows OS, your macros will work exactly as they do on a desktop PC.

1
Verify your operating system

Ensure your Surface device is running a full version of Windows (e.g., Windows 10 or Windows 11). Devices running restricted OS versions like Windows RT do not support desktop Excel.

2
Install Desktop Excel

Download and install the full desktop version of Microsoft Excel from your Microsoft 365 account. The web browser version of Excel will not run VBA.

3
Enable Macros upon opening

Double-click your macro-enabled workbook (.xlsm) to open it. Click the 'Enable Content' button in the yellow security warning bar at the top to allow your VBA scripts to execute.

Use a Windows-Based Surface Device for VBA Macros
Surface Compatibility: As long as the Surface device runs a standard Windows environment, it fully supports all advanced Excel features, including the VBA editor and macro execution.
Free Microsoft Office alternative

Run Macro-Enabled Spreadsheets Seamlessly with WPS Office

Need a lightweight, cost-effective solution to run your VBA macros on Windows devices? WPS Office is a highly compatible, free alternative to Microsoft Office that natively supports VBA on its desktop application, allowing you to execute complex scripts and manage macro-enabled workbooks effortlessly.

  1. 1. Download and Install: Get the desktop version of WPS Office for your Windows-based Surface or laptop.
  2. 2. Open your macro file: Launch WPS Spreadsheets, click Menu > Open, and select your .xlsm or .xlsb file.
  3. 3. Enable Macros: Click 'Enable Macros' when prompted by the security warning to run your scripts just as you would in Microsoft Excel.
Fully compatible with Microsoft Excel formats (.xls, .xlsx, .xlsm, .xlsb)Built-in VBA editor and macro support on Windows PCLightweight application that runs smoothly on portable Windows devices like Surface laptopsFree to download with a familiar, tabbed user interface
microsoft office alternative - wps office

Frequently Asked Questions

Why do my Excel macros work on a laptop but not on my Samsung tablet?

Samsung tablets run on the Android operating system. The Excel app for Android is a streamlined mobile application that does not include the VBA engine required to run macros. VBA execution strictly requires a full desktop OS like Windows or macOS.

Will macros run on an iPad or iPhone?

No. Similar to Android and Chrome OS, the Excel application for iOS and iPadOS does not support VBA macros. You can open the spreadsheet to view the data, but the macro functionality will be disabled.

Are there any Android apps that can run Excel VBA macros?

Currently, there are no native Android spreadsheet applications that fully support and execute Microsoft's Visual Basic for Applications (VBA) code due to the architectural limitations of the mobile operating system.

How can I automate tasks in Excel if I am using a Chromebook?

Since Chromebooks cannot run VBA, you can use Office Scripts. By logging into Excel on the web through your Chrome browser, you can use the Automate tab to create and run Office Scripts, which are supported across all web-based platforms.