Office Settings & Configuration

Can Excel VBA Resize a Data Validation Input Message Box?

Kushani NimanthikaKushani Nimanthika Nov 12, 2026 869 views

Question details

The user wants to change the size of the yellow input message displayed when an Excel cell with Data Validation is selected.

Can Excel VBA Resize a Data Validation Input Message Box?
Product
Microsoft Excel VBA and Data Validation
Device & OS
not provided
Scenario
The user needs more space for instructions or guidance shown to users before they enter data in a validated cell.
Observed behavior
Excel does not expose a standard VBA property for changing the width or height of the built-in Data Validation input message box.
Before you start

Check whether the instructions can be shortened or moved to a nearby worksheet cell, comment, or note. If users need detailed guidance, plan the fields and text that should appear in a custom VBA UserForm.

Solution 1Recommended

Use Excel's built-in Data Validation input message as designed

Use this option when a short instruction is enough and you want to keep Excel's native Data Validation behavior.

The yellow Data Validation input message is controlled by Excel and has no supported VBA property for resizing it. VBA can set the message text and title, but it cannot directly set the message box dimensions.

1
Open the Data Validation settings

Select the validated cell or range, then go to Data > Data Validation on the Excel ribbon.

2
Edit the input message

Open the Input Message tab, enter a concise Title and Input message, and keep Show input message when cell is selected enabled.

3
Use shorter, scannable instructions

Place the most important requirement at the beginning of the Input message, such as the allowed format, date range, or list-selection instruction.

Use Excel's built-in Data Validation input message as designed
No supported resize setting: Excel VBA can use Validation.InputTitle and Validation.InputMessage to change the text, but it cannot resize the built-in yellow input message box.
Free Microsoft Office alternative

Use WPS Office for Lightweight Spreadsheet Editing and Data Entry

Although WPS Office does not change the size of Microsoft Excel's native Data Validation input message, it provides a free, lightweight office suite with a familiar spreadsheet interface for opening, editing, and migrating workbook workflows.

Free and lightweight spreadsheet editing for everyday data-entry tasksFamiliar ribbon-style interface helps users transition from Microsoft ExcelCompatible with Microsoft Excel .xlsx and .xls workbook formatsProvides spreadsheet validation and formatting tools for clearer worksheet guidance
QA img-9

Frequently Asked Questions

Is there a VBA property for the width or height of an Excel Data Validation input message?

No. Excel VBA provides properties such as Validation.InputTitle and Validation.InputMessage for the text, but it does not provide a supported property to set the input message box width or height.

Can I make the Excel Data Validation input message display more text?

You can enter more text through Data > Data Validation > Input Message, but Excel controls the displayed box size. Long content may be less convenient to read, so use concise instructions or a custom form.

Can Windows API code resize the yellow Excel validation message?

Some advanced Windows API approaches may attempt to find and alter the dialog window, but they are complex, version-dependent, and not a reliable supported Excel VBA solution.

How do I show a custom prompt when a user selects a specific cell?

Create a VBA UserForm in the Visual Basic Editor with Alt+F11, then show it from a macro assigned to a worksheet shape or from the worksheet's SelectionChange event for the target range.

Should I keep Data Validation when using a custom UserForm?

Yes. Keep Data Validation when you also want Excel to reject invalid values pasted or entered directly into the worksheet. You can turn off its Input Message under Data > Data Validation > Input Message to avoid showing both prompts.