Validation.InputTitle property (Excel)
Returns or sets the title of the data-validation input dialog box. Read/write String. Limited to 32 characters.
expression A variable that represents a Validation object.
This example turns on data validation for cell E5.
With Range("e5").Validation .Add xlValidateWholeNumber, _ xlValidAlertInformation, xlBetween, "5", "10" .InputTitle = "Integers" .ErrorTitle = "Integers" .InputMessage = "Enter an integer from five to ten" .ErrorMessage = "You must enter a number from five to ten" End With
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.