bcarneyAEP
New member
- Local time
- Today, 15:58
- Joined
- Feb 1, 2012
- Messages
- 8
Hi everyone!
I need some assistance with an Excel import issue. The General synopsis is I want to create and Excel Macro or script to import a file into Excel and parse some data into separate cells.
The text file is basically an application log file dumped to a text file. The file starts with multiple lines of unimportant information, but it does contain a line with “start”. I will begin importing from this point to the end of the file. Each line of the file after “Start” is variable length and may or may not contain the information I am wanting in a separate cell. The Specific item I am looking for is always braced (text). So any line that contain (text) I need the text portion within the brackets to be placed in a separate cell.
Late addition to the project, there needs to be a column contains a number corresponding to the line location in the text file. The user wants to be able to sort the spreadsheet but return it to it’s original order.
Here is what the text file looks like
Text line
Text line
Start
Text line
Text line (text)
Text line
Text Line (text) text
Here is what I am looking for once the file is imported into Excel
A B C
1| 1 | Start |
2| 2 | Text line |
3| 3 | Text line | Text
4| 4 | Text line |
5| 5 | Text Line text | Text
Thanks in advance
B.
I need some assistance with an Excel import issue. The General synopsis is I want to create and Excel Macro or script to import a file into Excel and parse some data into separate cells.
The text file is basically an application log file dumped to a text file. The file starts with multiple lines of unimportant information, but it does contain a line with “start”. I will begin importing from this point to the end of the file. Each line of the file after “Start” is variable length and may or may not contain the information I am wanting in a separate cell. The Specific item I am looking for is always braced (text). So any line that contain (text) I need the text portion within the brackets to be placed in a separate cell.
Late addition to the project, there needs to be a column contains a number corresponding to the line location in the text file. The user wants to be able to sort the spreadsheet but return it to it’s original order.
Here is what the text file looks like
Text line
Text line
Start
Text line
Text line (text)
Text line
Text Line (text) text
Here is what I am looking for once the file is imported into Excel
A B C
1| 1 | Start |
2| 2 | Text line |
3| 3 | Text line | Text
4| 4 | Text line |
5| 5 | Text Line text | Text
Thanks in advance
B.