Excel Error Codes

How to Fix Excel Error 380: Could Not Set BackColor Property on Mac

Natalie TaylorNatalie Taylor Oct 12, 2026 868 views

Question details

The user is encountering Excel Error 380 on a Mac, which indicates an invalid property value issue triggered by a VBA macro attempting to configure a control's BackColor.

How to Fix Excel Error 380 (BackColor Property) on Mac
Product
Microsoft Excel
Device & OS
Mac
Scenario
Running a VBA macro or interacting with a userform that modifies visual control properties like background colors.
Observed behavior
Excel displays 'Error 380: Could not set the BackColor property. Invalid property value.' and halts macro execution.
Before you start

Verify your current Excel version by selecting Microsoft Excel > About Microsoft Excel from the top menu bar to check if you are running a specific build (such as 16.79.1) associated with this VBA property issue.

Solution 1Recommended

Debug the VBA Macro and Correct the Invalid Property Value

Identify the exact VBA task triggering the error and modify the BackColor property value to a universally supported format.

macOS and Windows handle certain VBA color properties differently. A system color constant (like vbButtonFace) that works perfectly on Windows might trigger Error 380 on a Mac because macOS does not recognize it.

1
Open the VBA Editor

Go to the Developer tab on the Excel ribbon and click 'Visual Basic', or press Option + F11 on your Mac keyboard to open the editor.

2
Locate the problematic macro

In the Project Explorer, find the UserForm or Module that was running when the error occurred. Search for any code assigning a value to the 'BackColor' property.

3
Modify or comment out the BackColor value

Change the assigned value to a standard RGB color (e.g., RGB(255, 255, 255) for white). Alternatively, bypass the error by placing an apostrophe (') at the beginning of the line to comment it out.

4
Save and test the macro

Save your VBA project, close the Visual Basic editor, and run the macro again to confirm that Error 380 is resolved.

Debug the VBA Macro and Correct the Invalid Property Value
Reference Microsoft Documentation: If you are unsure about which property values are valid on macOS, consult Microsoft's official documentation for 'Invalid Property Value error 380' to see supported cross-platform formats.
Free Microsoft Office alternative

Try WPS Office for a Lightweight and Compatible Experience

If you are struggling with complex VBA errors and cross-platform compatibility issues in Microsoft Excel on Mac, WPS Office provides a reliable, fast, and free alternative. It offers extensive compatibility with Excel files, allowing you to handle your spreadsheets efficiently.

Free to use with comprehensive spreadsheet data analysis toolsSeamless format compatibility with Microsoft Excel (.xlsx, .xls, .csv)Lightweight design that runs fast and smoothly on macOSFamiliar, intuitive user interface requires no learning curve
microsoft office alternative - wps office

Frequently Asked Questions

What does Error 380 mean in Excel?

Error 380 indicates an 'Invalid Property Value'. It occurs when a VBA script tries to assign a value to a property (like a color, size, or style) that falls outside the acceptable range or is not natively supported by the operating system.

Why does my VBA macro work on Windows but show Error 380 on Mac?

Windows and macOS use different rendering engines and system color codes. A system color constant used for a BackColor property in Windows may not exist on a Mac, resulting in Error 380 when the code is executed.

How can I check my current version of Excel on a Mac?

Click on 'Microsoft Excel' in the top-left corner of your Mac's menu bar, then select 'About Microsoft Excel'. A window will pop up displaying your current version number, which helps identify version-specific bugs.