from .MSG file msg.body line by line

drom

Well-known Member
Joined
Mar 20, 2005
Messages
528
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Hi and thanks in advance!!

I am taking info from a Folder (just the .MSG extension files) (No problem)

From those files I need the:
  • msg.SentOn
  • msg.to
  • msg.cc
  • msg.bcc
I can get it easily
now the msg.body always keeps the same format and as follows:

2/4 lines and then

Name: Mike Tyson
Phone: 123456789
E-mail:aaaaa@ggggg.com
How did you hear about us?TEXT
DATE: 12/09/2020
TIME:: dinner: 21:00 - 23:00
Diners: 4
Comments: TEXT

I would like to get the blue INFO this info, I mean:
  • Mike Tyson
  • 123456789
  • aaaaa@ggggg.com
  • TEXT
  • 12/09/2020
  • Para Cenar: 21:00 - 23:00
  • 4
To do so I am using
InStr to find where is located NAME, Phone, E-mail... and son on and then Mid(...)

Is there any easyer way?
because the Info I need has 15 mandatory fields in 20 rows and my way is not nice
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top