Hi all,
My request is similar to this one: http://www.excelforum.com/excel-form...l-content.html
I'm looking to create data validation as well as format the input for a cell, according to these stipulations:
-The data will be formatted as XXX-######
-Any of the first 3 characters before the dash are either alpha or numeric
-The last 6 characters after the dash are always numeric
-The user should be able to enter or not enter the dash, (if not then the code should insert it for them)
-If there are not exactly 9 characters (or 10 if the dash is present) or if there are special characters or if the last 6 characters contain alpha, a warning box should follow.
I'm not familiar enough with VBA syntax to code this myself.
Thanks in advance for your assistance.
Bookmarks