We help IT Professionals succeed at work.

I need help with extracting data from the body of emails in a specific folder

taisweb
taisweb asked
on
239 Views
Last Modified: 2014-05-28
I get a daily email which is a report of bandwidth usage and I need to extract that data and put it in Excel for reporting.
To date there are over 400 messages I would like to process.


A typical day's email looks like:

: customer_Name_Goes _Here :  Vlan999 customer_Name_Goes _Here $$ bw=45
---------------------------------------
| MONTH(5 minute avg) --   95%   : 9115.09kb/sec       Max: 46430.21kb/sec
| MONTH(2 hour avg  ) --  Avg In: 4080.0kb/s(0.4%)   Avg Out: 1651.7kb/s(0.2%)
|   DAY(5 minute avg) --  Avg In: 3715.2kb/s(0.4%)   Avg Out: 1773.3kb/s(0.2%)
---------------------------------------

Additionally I need to get the "Sent" date.

Then parse this into CSV or straight into Excel go to the next message and repeat until I get all the data in one file.

In CSV it should be:

Sent,MONTH5mAvg95,MONTH5mAvgMax,MONTH2hAvgIn,MONTH2hAvgOut,DAY5mAvgIn,DAY5mAvgOut
5/22/2014,9115.09,46430.21,4080.0,1651.7,3715.2,1773.3



I have dabbled in VBA, (ok I've copied a lot ofcode from others and adapted for my own purposes), and tried searching for a solution but everything I have found on this is for extracting email addresses not just plain text.  I must be looking in the wrong place.

Anyway, if you can get pointed in the right direction, it would be greatly appreciated.


David G.
Comment
Watch Question

IT Manager
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thank you for your code sample, however since I started this "project" the ISP has provided reporting that is answering my question(s) so we have abandoned this.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.