Solved

Make Multiple Lines Into A CSV Format with Notepad ++

Posted on 2013-12-29
3
369 Views
Last Modified: 2014-01-01
I have about 3000 records in this format, I want to import them into Excel. I tried the Text To Columns but that didn't help. Using Notepad ++, or VBA, how can I make them in csv format?

Event Type: Birthday Party
State: CA
City: SAN DIAGO
Date: 12/31/2013
Name: JANE DOE
Email: JANE@DOE.NET
0
Comment
Question by:Computer Guy
3 Comments
 
LVL 10

Expert Comment

by:JEaston
ID: 39744985
If every record has the same 6 rows then in Notepad++ you can record a macro and then press and hold Ctrl + shift + P to play the macro until you reach the end of the file.

For me I did this (while macro is recording) by setting the cursor at the start of the file and pressed End, then comma then delete and repeated until the six lines were on one.  Then pressed left to go to the next line.  Then stop recording and press Ctrl + shift + P until the end of the file is reached.

If the records have a different number of lines then I will look at a VBA solution.
0
 
LVL 19

Expert Comment

by:Raheman M. Abdul
ID: 39744999
Send the resultant file (how you want to be) adding atleast 2 records in it.  I would like to know what is your requirement.
0
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 39745104
Test this sample. Open file, allow Macros and press button
ImportTextFile1.xlsm
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question