+ Reply to Thread
Results 1 to 2 of 2

Save excel data range in comma separated .txt file

  1. #1
    Registered User
    Join Date
    02-23-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Save excel data range in comma separated .txt file

    Hi,

    I have a range of data which I'm trying to save into a comma separated .txt file. Excel only allows one to save to a comma separated .csv file. Unfortunately the program I am trying to upload to requires comma separated .txt file.

    I tried save to .csv file then opening in wordpad and saving as .txt file but unfortunately this means some of the blank fields are lost.

    Please see attached file where the range of data I wish to export to comma separated .csv file is cells B1 : CI36. Further column T (Date) needs to be saved to .txt file in text format ddmmyyyy (i.e.: no "/").

    When opening the .txt file the first line of the attached file would read:
    ,PYMNT12MAY11,,01,,RIV001,,,,,,,56001811149035,,,GBP,8640,,12052011,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

    Is the best way to write a macro to export the data?

    Kind regards,
    Sky
    Attached Files Attached Files
    Last edited by skycowboy; 05-12-2011 at 06:16 AM. Reason: To provide additional information

  2. #2
    Valued Forum Contributor
    Join Date
    07-21-2008
    Location
    London, UK
    Posts
    326

    Re: Save excel data range in comma separated .txt file

    good starting place for this is Chip Pearson, i recall he did wornderful work on this was it IMPTXT section, import / export text etc

    jiuk

+ Reply to Thread

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