logo
search
VBA & Macro Problems

How to Fix Excel Data Validation Warning with VBA Multi-Select Cells

Elise WilliamsElise Williams Oct 10, 2026 870 views

Question details

The user experiences a Data Type warning (green triangle indicator) in Excel when using a VBA macro to allow multiple selections from a Data Validation drop-down list.

How to Fix Excel Data Validation Warning with VBA Multi-Select Cells
Product
Microsoft Excel
Device & OS
not provided
Scenario
Using a VBA macro to enable users to select and append multiple items from a single Data Validation drop-down list into one cell.
Observed behavior
After the second selection, Excel displays a Data Type warning with green indicators because the concatenated text no longer matches the original validation list, even though the workbook functions correctly.
Before you start

Before modifying your Excel error-checking settings or editing the macro, ensure you save a backup copy of your macro-enabled workbook (.xlsm) to prevent any accidental code loss.

Solution 1Recommended

Adjust Error Checking Rules for Data Validation

Disable the specific background error checking rule that flags data validation violations to hide the green triangle warnings.

When VBA concatenates multiple selections (e.g., 'Item 1, Item 2'), the resulting string is not in the original Data Validation list. Excel's background error checker flags this as invalid data. Disabling this specific check removes the visual warning without breaking the macro.

1
Open Excel Options

Click on 'File' in the top ribbon and select 'Options' at the bottom of the menu.

2
Navigate to Formulas

In the Excel Options dialog box, click on the 'Formulas' tab in the left sidebar.

3
Modify Error Checking Rules

Scroll down to the 'Error Checking rules' section and uncheck the box for 'Data entered in a table is invalid' (or 'Data validation errors').

4
Apply Changes

Click 'OK' to save your settings. The green triangle indicators should no longer appear when multiple items are selected.

Workbook functionality: Disabling this visual warning does not affect the actual data validation rules or how your VBA macro executes.
Free Microsoft Office alternative

Try WPS Office for Seamless VBA and Data Validation Support

If strict data validation warnings in Microsoft Excel are disrupting your workflow, WPS Office provides a lightweight, highly compatible alternative. WPS Spreadsheet supports VBA macros and complex data validation with a familiar interface, ensuring your multi-select drop-downs work smoothly.

  1. 1. Download and Install: Get WPS Office for free from the official website and install it on your computer.
  2. 2. Open Your Workbook: Launch WPS Spreadsheet and open your .xlsm file containing the data validation macros.
  3. 3. Enable Macros: Click 'Enable Macros' when prompted to allow your VBA multi-select script to run seamlessly.
High compatibility with Microsoft Excel (.xlsx, .xlsm) formats and macrosRobust support for executing VBA macros and maintaining complex Data Validation rulesFree, lightweight, and uses minimal system resourcesFamiliar user interface for a zero-learning-curve transition
microsoft office alternative - wps office

Frequently Asked Questions

Why does VBA multi-select trigger a data validation error?

When a VBA macro allows multiple selections in a single drop-down cell, it concatenates the chosen items (e.g., 'Item 1, Item 2'). Because this new combined string does not match any single item in the original validation list, Excel's background error checking flags it as invalid data and displays a green triangle.

Can I completely disable Data Validation error alerts in Excel?

Yes. You can uncheck the 'Show error alert after invalid data is entered' option inside the Data Validation dialog box (Data > Data Validation > Error Alert). However, Excel's background error checker might still display a green triangle unless you also modify the settings in File > Options > Formulas.

Does the green validation warning affect my workbook's calculations?

No. The green indicator is simply a visual warning indicating that the cell's current text doesn't strictly match the predefined data validation list. It does not prevent formulas, macros, or subsequent calculations from executing properly.

Will reinstalling Microsoft 365 fix the VBA validation warning?

Typically, reinstalling will not fix this issue because the warning is a designed behavior of Excel's error checking system rather than a software corruption. Modifying the error checking options or adjusting your VBA code is the recommended approach to resolving it.