A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Reply with custom form & selected data from message body



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 27th 09, 03:14 AM posted to microsoft.public.outlook.program_vba
GregoryL.[AITI]
external usenet poster
 
Posts: 1
Default Reply with custom form & selected data from message body

Hi everyone,

I receive a lot of plain text emails that contain data in a preset format
that I would like to auto reply with a custom form I have built. I would like
to know if I can locate and use certain values from the original message in
my reply (e.g. original msg contains as plain text First Name: John and
Coffee Type: Arabica. Can I locate John and Arabica in the original msg and
populate those values in my auto reply form - Hi John, thanks for your
enquiry about our Arabica coffee range...)

It seems straight forward enough yet any help or pointers in the right
direction would be greatly appreciated.


TIA

Greg



Ads
  #2  
Old May 27th 09, 03:45 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Reply with custom form & selected data from message body

You might find this code sample useful:
http://www.outlookcode.com/codedetail.aspx?id=89 It shows how to parse a
structured text block as your scenario describes.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"GregoryL.[AITI]" wrote in
message ...
Hi everyone,

I receive a lot of plain text emails that contain data in a preset format
that I would like to auto reply with a custom form I have built. I would
like
to know if I can locate and use certain values from the original message
in
my reply (e.g. original msg contains as plain text First Name: John and
Coffee Type: Arabica. Can I locate John and Arabica in the original msg
and
populate those values in my auto reply form - Hi John, thanks for your
enquiry about our Arabica coffee range...)

It seems straight forward enough yet any help or pointers in the right
direction would be greatly appreciated.


TIA

Greg





  #3  
Old May 28th 09, 12:49 AM posted to microsoft.public.outlook.program_vba
GregoryL.[AITI][_2_]
external usenet poster
 
Posts: 1
Default Reply with custom form & selected data from message body

Thanks Sue for the pointers and links, I'm almost there!

The example at
http://www.outlookcode.com/threads.a...&messageid=696 is very close
to what I'm dealing with except the data value attached to each label is on
the line below it - see example...

snip
Q. Email Address
A.

Q. First Name
A. John

Q. Coffee Type
A. Arabica
snip

I can successfully locate & return the Email Address label, how do I go the
next step and get the code to locate the label but return the line below it
for trimming and insertion into my reply email?

TIA -Greg

"Sue Mosher [MVP]" wrote:

You might find this code sample useful:
http://www.outlookcode.com/codedetail.aspx?id=89 It shows how to parse a
structured text block as your scenario describes.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"GregoryL.[AITI]" wrote in
message ...
Hi everyone,

I receive a lot of plain text emails that contain data in a preset format
that I would like to auto reply with a custom form I have built. I would
like
to know if I can locate and use certain values from the original message
in
my reply (e.g. original msg contains as plain text First Name: John and
Coffee Type: Arabica. Can I locate John and Arabica in the original msg
and
populate those values in my auto reply form - Hi John, thanks for your
enquiry about our Arabica coffee range...)

It seems straight forward enough yet any help or pointers in the right
direction would be greatly appreciated.


TIA

Greg






  #4  
Old May 28th 09, 03:46 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Reply with custom form & selected data from message body

I'd use the same text parsing functions, Instr() and Mid(). Use Instr() to
search for the text "Email Address", then from that starting position,
search for the text "A:", etc. Use Mid() to clip the text.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"GregoryL.[AITI]" wrote in message
...
Thanks Sue for the pointers and links, I'm almost there!

The example at
http://www.outlookcode.com/threads.a...&messageid=696 is very
close
to what I'm dealing with except the data value attached to each label is
on
the line below it - see example...

snip
Q. Email Address
A.

Q. First Name
A. John

Q. Coffee Type
A. Arabica
snip

I can successfully locate & return the Email Address label, how do I go
the
next step and get the code to locate the label but return the line below
it
for trimming and insertion into my reply email?

TIA -Greg

"Sue Mosher [MVP]" wrote:

You might find this code sample useful:
http://www.outlookcode.com/codedetail.aspx?id=89 It shows how to parse a
structured text block as your scenario describes.

"GregoryL.[AITI]" wrote in
message ...
Hi everyone,

I receive a lot of plain text emails that contain data in a preset
format
that I would like to auto reply with a custom form I have built. I
would
like
to know if I can locate and use certain values from the original
message
in
my reply (e.g. original msg contains as plain text First Name: John and
Coffee Type: Arabica. Can I locate John and Arabica in the original msg
and
populate those values in my auto reply form - Hi John, thanks for your
enquiry about our Arabica coffee range...)

It seems straight forward enough yet any help or pointers in the right
direction would be greatly appreciated.


TIA

Greg








 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Appointment Form Message Body Deleted upon reply. Maui80 Outlook - Using Forms 3 May 5th 09 09:26 PM
Message body (all my custom form labels/data) disappears when repl duugg Outlook - Using Forms 6 December 11th 08 01:49 PM
Custom Form - Receiver replies and form is gone, message body is b Kozlik Outlook - Using Forms 16 July 14th 06 09:32 PM
Can't see message body until Reply or Fwd is selected Jen Outlook - General Queries 0 March 16th 06 02:31 PM
Inserting a picture in the message body of a custom form groom Outlook - General Queries 1 February 8th 06 10:08 PM


All times are GMT +1. The time now is 02:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.