Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Make Multiple Lines Into A CSV Format with Notepad ++

Posted on 2013-12-29
3
377 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 40

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
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…

790 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