Hi all
I would like to set 15 characters max in cell, i can set this max characters under the "Data Vaildation" . How can i set this function by VBA ?
Hi all
I would like to set 15 characters max in cell, i can set this max characters under the "Data Vaildation" . How can i set this function by VBA ?
Hi
try this :
With Selection.Validation
.Delete
.Add Type:=xlValidateTextLength, AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween, Formula1:="0", Formula2:="15"
End With
Regards
Geert
Maybe:
Please Login or Register to view this content.
Please Login or Register to view this content.
< ----- Please click the little star * next to add reputation if my post helps you
Visit Forum : From Here
Its work, Thank you very much
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks