• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Macro to read paragraphs from a large text file and paste them into specific cells

User_232

New Member
Hello,

Please help to make a macro for Excel 2003-2007 which will read the information as a group of paragraphs from a huge text file, like "Sample base.txt", encoded in win1251, delete paragraph marks and spaces at the end and the beginning of each group, replace the remaining CRLF characters with smth like "^ n^", and insert the information into the appropriate cell of column 5 or 6, opposite to the cell identifier. Identifiers have been already inserted into Excel file. If the required information is not available - a line like "Not found" should be inserted.

The information in each group is separated with the text markers, like "-START-" and "-END-".

A short sample of source file and what should be get:
 

Attachments

  • Example1.zip
    4 KB · Views: 2
Back
Top