Re: Help parsing body text
- From: "Michael Bauer [MVP - Outlook]" <mb@xxxxxxxx>
- Date: Mon, 10 Mar 2008 06:59:05 +0100
You must find the delimiter for columns and rows. It seems that the
delimiter for columns is the Pipe (|), and the one for rows might be vbCRLF.
Then you can use the Split function to first get an array with rows, then
use the function again for every row to split by the Pipe.
--
Best regards
Michael Bauer - MVP Outlook
Use Outlook Categories? This is Your Tool:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
Am Sat, 8 Mar 2008 21:24:58 -0800 (PST) schrieb HammerJoe@xxxxxxxxx:
Hi,--------------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-------------
I wonder if anyone could get me started on how to parse the text body
of an email.
The body looks like this:
|Sunday |Monday |Tuesday |Wednesday |--------------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-------------
Thursday |Friday |Saturday |
|03/09/08 |03/10/08 |03/11/08 |03/12/08 |
03/13/08 |03/14/08 |03/15/08 |
7550 |OFF | 0930-1730| 0900-1700| 0900-1700|--------------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-------------
0930-1730| 0930-1730|OFF |
Joe, Hammer |L 1400-1500|T 0900-1300|T 0900-1300|L 1400-1500|L
1400-1500| |
| | |L 1300-1400|L
1300-1400| | | |
| | |T 1400-1700|T
1400-1700| | | |
.
The email contains a list of schedules for several people.
The first 'column' is dependent on the longest name of all the
individuals, the weekly 'columns' are static in size but as you can
see they can have several 'rows'.
I need to parse each person and find special events and set up a
calendar reminder to be sent to the person.
In my example I need to set up a calendar invite for all the times
that have a 'T', for ie Tuesday 0900-1300 and 1400-1700.
I have been playing with this for awhile and all I come up is a messy
spaghetti code and I not getting anywhere.
I would appreciate any help that would get me started on this.
Thanks.
- Follow-Ups:
- Re: Help parsing body text
- From: HammerJoe@xxxxxxxxx
- Re: Help parsing body text
- References:
- Help parsing body text
- From: HammerJoe@xxxxxxxxx
- Help parsing body text
- Prev by Date: Help parsing body text
- Next by Date: Re: How to add button on Mail editor which is not outlook.??
- Previous by thread: Help parsing body text
- Next by thread: Re: Help parsing body text
- Index(es):
Relevant Pages
|