Create more than 1 Message Block in a Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a Form via an email message. I can't seem to get more
than 1 Message Block to work. Whatever I type in one Message Block is
repeated in the others once the message is sent. Is there another option
besides a message block that can be used to input multiple lines in two or
more sections of the same page?

Thanks for your help.
 
A message has only one message body. You can feel free to put as many text boxes as you like on a custom form, but if you want their information to appear in the message body, you'll have to provide code to concatenate that information.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
I tried text boxes, but I need multiple lines with breaks which text boxes
can't do.
I would like mulitple Message areas.

What code and where should it go?
 
Yes they can, if you set the Multiline property to True in the Advanced Properties dialog for the control.

The code goes in the Item_Send event handler. It depends on many details you haven't disclosed:

1) Whether the text boxes are bound to Outlook properties and if so, the names of those properties. See http://www.outlookcode.com/d/propsyntax.htm for a primer on both.

2) Whether the message is in HTML or plain text format

For a plain text message, it would be:

Function Item_Send()
Item.Body = Item.Body & <text that you want to append to the body>
End Function

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top