Solved

Make Multiple Lines Into A CSV Format with Notepad ++

Posted on 2013-12-29
3
362 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 18

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

914 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now