Can Excel VBA Resize a Data Validation Input Message Box?
Question details
The user wants to change the size of the yellow input message displayed when an Excel cell with Data Validation is selected.

- 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.
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.
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.
Select the validated cell or range, then go to Data > Data Validation on the Excel ribbon.
Open the Input Message tab, enter a concise Title and Input message, and keep Show input message when cell is selected enabled.
Place the most important requirement at the beginning of the Input message, such as the allowed format, date range, or list-selection instruction.

Create a custom VBA UserForm for detailed data-entry guidance
Use a UserForm when the built-in Data Validation message is too small and users need longer instructions, labeled controls, or a tailored entry workflow.
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.

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.




