Thanks for that Dave.
It removes the first 6 charcters but what i need is just the first 7 charcters to be left. Do you know the code for that?
Does anyone know if you can use part of a file name in a barcode? its the first 6 charcters. i've been able to use the whole name but this just makes the barcode to complex for production to use.