Hi i have a big problem i have been fighting with. In my job i will get a file which i will put in excel to work and edit in it.
After i have make the edit, i have to export it to a text file, seperated with semicolon.
I have 2 macros which can do that and its working really good.
Macro3 open a filedialog, where i can choose where to save and after a dialogbox, how i want to seperate(semicolon or eks comma)
Macro1 do the same, but save to a file called output.txt
Both macro are working perfect.
My problem is on one of the columns(column E, only numbers), i need to delete the first 2 zeros, before i export to the textfile.
I have tried many things,i can easily delete the first 2 zeros example with custom format and put 000000000000. But
whatever i do, when i export the file it delete the zeros in the textfile. I can only keep the zeros if i format the column to text before
i put the numbers in. But in this case if i edit, it give me the same result(remove the zeroes)
I have attached a test sheet, you can play with. the numbers in column E are pasted in, after formet to text.
I would prefer a macro for this to change it in column E, either in one of the existing macroes, or in a seperate macro.
But all solutions will be appriciated, it really give me problems. And i really need this solution.
Hope for some help here.
ps. Use excel 2003
Thanks in advance
Sincerly Abjac
Bookmarks