Based on
MS Office documentation[
^]:
With Range("C1:C10").Validation
.Add Type:=xlValidateWholeNumber, AlertStyle:= xlValidAlertStop, Operator:=xlBetween, Formula1:="1", Formula2:="10"
.InputTitle = "Integers"
.ErrorTitle = "Integers"
.InputMessage = "Enter an integer from one to ten"
.ErrorMessage = "You must enter a number from one to ten"
End With