J
jgodfrey
I am trying to set a custom number format for some cells to
automatically add a hyphen between every two sets of numbers. I am
trying to be able to punch in the MAC address of a piece of hardware
and have it automatically input the hyphens in the address for me.
For example, an address like this: 0A-00-3E-F0-12-34 or like this
0A-00-3E-F0-1B-4C.
-----
I have tried the following code: ##-##-##-##-##-## and it works fine
until you enter in the alphabetic characters. So, I modified my code
to this: 0\A-00-3\E-F0-##-## and it will work ok except in the case of
an alphabetic character in the last four digits then it does not work
at all. I want to be able to have it work for all 12 manually entered
characters and then have it insert the hyphens between the pairs.
Any help that you could provide to me in regards to this dilemma would
be greatly appreciated. Thank you for your help and time with this
matter.
------------------------------------------------
------------------------------------------------
automatically add a hyphen between every two sets of numbers. I am
trying to be able to punch in the MAC address of a piece of hardware
and have it automatically input the hyphens in the address for me.
For example, an address like this: 0A-00-3E-F0-12-34 or like this
0A-00-3E-F0-1B-4C.
-----
I have tried the following code: ##-##-##-##-##-## and it works fine
until you enter in the alphabetic characters. So, I modified my code
to this: 0\A-00-3\E-F0-##-## and it will work ok except in the case of
an alphabetic character in the last four digits then it does not work
at all. I want to be able to have it work for all 12 manually entered
characters and then have it insert the hyphens between the pairs.
Any help that you could provide to me in regards to this dilemma would
be greatly appreciated. Thank you for your help and time with this
matter.
------------------------------------------------
------------------------------------------------