+ Reply to Thread
Results 1 to 8 of 8

Export to the text file with space separator

  1. #1
    Registered User
    Join Date
    01-17-2017
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    16

    Export to the text file with space separator

    If I save excel file as a text file, I don't have possibility to save it with the space separator but just with the tab separator. There exists some macro which will be able to save my file like this? (I used _ as a space)

    10_255,00_345,00
    115_3450,00_1981,00

    instead of this (I used _ which means tabulator in this case):

    10__255,00__345,00
    115_3450,00_1981,00

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Export to the text file with space separator

    You should be able to save as Text (Tab delimited) file from Save as menu.
    0.JPG

    Edit: Woops, misread your post. You can use save as. Formatted Text (space delimited) (*.prn).
    Last edited by CK76; 03-07-2017 at 10:38 AM.

  3. #3
    Registered User
    Join Date
    01-17-2017
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    16

    Re: Export to the text file with space separator

    This is what I don't what...I need space delimiter not Tab delimiter

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Export to the text file with space separator

    See edit in my post.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Export to the text file with space separator

    mgecelov
    Try this
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-17-2017
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    16

    Re: Export to the text file with space separator

    thanks so much. It works perfectly. If I may ask one more question, when I do need numbers with two decimals 255.00...not just 255...what is the result of your code?

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Export to the text file with space separator

    Then Text property for the safety.
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-17-2017
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    16

    Re: Export to the text file with space separator

    many thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Export specific range to text file and import the text file if needed
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2015, 07:38 AM
  2. Convert Columns to text file with a separator of |
    By Mquattrone in forum Excel General
    Replies: 8
    Last Post: 08-14-2014, 11:14 PM
  3. Replies: 4
    Last Post: 08-20-2013, 03:07 AM
  4. Sum cells with numbers and text - space separator
    By Greed in forum Excel General
    Replies: 4
    Last Post: 11-17-2011, 09:42 AM
  5. How to export excel to txt with | separator
    By etrader in forum Excel General
    Replies: 3
    Last Post: 07-16-2009, 08:31 AM
  6. space as a separator
    By Palikka in forum Excel General
    Replies: 2
    Last Post: 06-01-2007, 04:51 PM
  7. export in CSV with ; as cell separator
    By bodovoet in forum Excel General
    Replies: 4
    Last Post: 10-31-2006, 11:11 AM

Tags for this Thread

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