I have a form where users are asked to input information into a field. The information comes in 1 of 3 formats: 12345-647-91 1234-5678-91 or 12345-6789-1
I am trying to create a macro that identifies the format and based on that outputs a new value. For example
If format = XXXXX-XXX-XX Then
output XXXXX-0XXX-00XX
else if format = XXXX-XXXX-XX Then
output 0XXXX-XXXX-00XX'
etc
Any guidance?
Likecan work here.XXXX-XXXX-XXXXand add zeros in front of any sets of digits smaller than four? Will these always be numbers or may letters also appear?12345-647-91be? What happens to the 5th digit?