+ Reply to Thread
Results 1 to 6 of 6

how to export txt file

  1. #1
    Forum Contributor
    Join Date
    12-27-2021
    Location
    China
    MS-Off Ver
    Ms office 2019
    Posts
    188

    Exclamation how to export txt file

    Hello everyone , please help me . thanks a lot.

    a. Create a new folder according to column a name to store txt files
    b. If the value of column B is unique, the output TXT file has only this line
    c. If the value of column B is not unique, all rows of the value are output to the same TXT file
    d. Each TXT file name is named by the value in column B
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-27-2021
    Location
    China
    MS-Off Ver
    Ms office 2019
    Posts
    188

    Re: how to export txt file

    Hello, please help me , thanks a lot.

  3. #3
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,223

    Re: how to export txt file

    Try it
    Please Login or Register  to view this content.
    Notes
    The data should be grouped against column B.
    The group name is taken from the first row of the group.
    The root folder may not exist. It will be created. The specified drive must exist. The root folder must not be a folder reserved by the Win system (this is probably obvious ).
    The resulting files contain only three columns: Number, Date and Title.
    Data in result files may (but need not) contain a header row. You decide on the line:
    Please Login or Register  to view this content.
    If there is not to be a header, remove the last argument:
    Please Login or Register  to view this content.
    Artik

  4. #4
    Forum Contributor
    Join Date
    12-27-2021
    Location
    China
    MS-Off Ver
    Ms office 2019
    Posts
    188

    Re: how to export txt file

    Sorry for the late reply. I really appreciate your help. There is a small problem: how to roughly align the title of the exported TXT document with the column.

  5. #5
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,223

    Re: how to export txt file

    I have shown how to generate files that in the future can be used for automatic processing of data from these files (it is known that the data separator is a Tabulator, so there is not much problem with dividing the data into columns). I don't know if I understood your new request correctly. For now, my understanding is that the generated files are to be used for "viewing" (they are to look nice in Notepad ). Is that what you mean? But then the value of these files as a data source becomes questionable.

    Artik

  6. #6
    Forum Contributor
    Join Date
    12-27-2021
    Location
    China
    MS-Off Ver
    Ms office 2019
    Posts
    188

    Re: how to export txt file

    I got it. Thanks a lot .

+ 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. Export worksheets to new file VBA to 'Break Links' on export?
    By Spoonman667 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-18-2021, 03:13 AM
  2. Export Pre-selected Rows to Macro-enabed File, Save the file, Print it as PDF.
    By N1ka in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-03-2018, 08:07 PM
  3. [SOLVED] To create a file folder in the current workbook location and export the file
    By Ravana in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2016, 07:30 AM
  4. Export Cells to Text and automatically have File Name and File Type Selected
    By bloomingcarrot in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-18-2014, 03:37 PM
  5. Export Excel records to seperate text file & compress it to protecte ZIP file
    By firedragon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2012, 10:47 AM
  6. Export excel file to semicolon delimited text file
    By capitan in forum Excel General
    Replies: 5
    Last Post: 04-06-2005, 11:07 PM
  7. [SOLVED] How do I import text file, analyze data, export results, open next file
    By Geoffro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2005, 04:06 PM

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