I have a CSV file that is reworked with a macro so that the information can be read by a printing machine.
One of the columns contains a series of 12 digit barcodes that needs to be read as text.
Currently the number appears in scientific notation.
Problem -
If I convert directly to text, it still appears as scientific notation
I can convert it to a number so that all 12 digits appear but when I try and change the column to text it reverts to scientific notation.
I have tried inserting another column, making it text then copying and pasting the data in, but the new column reverts to number.
If I put a ' in front of the number it does stay as the proper number but this is not practicable as the file could easily be several hundred rows long and many files are processed on a daily basis. Is there any VBA which can convert the number to text but still retain the full 12 characters?
I am using Excel 2007, although the file is saved in 2003 compatibility mode.
Any help gratefully received.
One of the columns contains a series of 12 digit barcodes that needs to be read as text.
Currently the number appears in scientific notation.
Problem -
If I convert directly to text, it still appears as scientific notation
I can convert it to a number so that all 12 digits appear but when I try and change the column to text it reverts to scientific notation.
I have tried inserting another column, making it text then copying and pasting the data in, but the new column reverts to number.
If I put a ' in front of the number it does stay as the proper number but this is not practicable as the file could easily be several hundred rows long and many files are processed on a daily basis. Is there any VBA which can convert the number to text but still retain the full 12 characters?
I am using Excel 2007, although the file is saved in 2003 compatibility mode.
Any help gratefully received.