Advertisement

03.27.2007 at 09:15AM PDT, ID: 22475322
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Converting Notepad to Excel using VBA

Asked by kamur in Microsoft Excel Spreadsheet Software

Tags: , ,

I have a notepad that I want to convert into excel. The notepad is structured in this way,


Page 1

Field                              Description                               Pos           Len
---------                          ---------------                           ------       -----
HCY-Number              Account Number                            1            11
                                   Details about the account number
                                   Cannot start with A and N
                                   SOURCE - GPF File


HCY-Name                  Name                                       12          30
                                   Tells about the name and  
                                   its description
                                   SOURCE - DPF File


:
:

Page 2

Field                              Description                               Pos           Len
---------                          ---------------                           ------       -----
HCY-Address            Address Details                            43            90
                                   Details about the address
                                   Residence details
                                   SOURCE - GPF File
   

:
:


I want to convert this notepad content into excel with columns,
Field, Short Description, Long Description, Source, Pos, Len

"Field" is always starting with HCY- and it starts at position 1 in the notepad.
"Short Description" is the first line under the "Description" text and always starts at position 35 in the notepad.
"Long Description" is the 2 lines that follow the "short description" tex in the notepad and it also starting at position 35 in the notepad.
"Source" is the last line under "Description" in the notepad and is also starting at position 35 in the notepad.
"Pos" is the value (number) at position 70 in the notepad
"Len" is the value (number) at position 80 in the notepad.

As you can see, there are additional blank lines and other lines (Page 1, Page 2, etc) that I want to exclude in the output.

Please help how I can achieve this and convert this notepad into excel.

ThanksStart Free Trial
 
 
[+][-]03.27.2007 at 12:29PM PDT, ID: 18802819

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: notepad, convert, excel
Sign Up Now!
Solution Provided By: jennynover
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.28.2007 at 02:55AM PDT, ID: 18806747

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2007 at 11:33PM PDT, ID: 19035444

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.14.2007 at 06:47PM PDT, ID: 19089861

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32