Results 1 to 6 of 6

Help Really needed. Export excel to text file.

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Help Really needed. Export excel to text file.

    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
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1