Re: Updating Subject field using controls from message body

Tech-Archive recommends: Speed Up your PC by fixing your registry



Put code in the Item_Send event handler:

Function Item_Send()
Item.Subject = "new subject"
End Function

See http://www.outlookcode.com/d/propsyntax.htm if you need a primer on reading field values.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

<andrew@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:1149856442.728496.127040@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Morning,

I am developing a fault reporting form for my area. What i want to do
is include some code that will populate (when the message is sent) the
Subject field with some text and some values from fields in my form.

I have several fields, including Site Name and Contact Name and want
the subject to read "DES Query from (Contact Name) at (Site Name) on
(Date)"

I am sure this is simple, but I just don't know enough!

Andrew

.



Relevant Pages

  • Re: While You Were Out Telephone form
    ... Author of Configuring Microsoft Outlook 2003 ... >> Sue Mosher, Outlook MVP ... >> Administrators, Power Users, and Developers ...
    (microsoft.public.outlook.program_forms)
  • Re: recipient of message form gets blank message
    ... Author of Configuring Microsoft Outlook 2003 ... >> Sue Mosher, Outlook MVP ... >> Administrators, Power Users, and Developers ... >>> I am trying to create a request form where I can specify certain information ...
    (microsoft.public.outlook.program_forms)
  • Re: Export Form Data
    ... Author of Configuring Microsoft Outlook 2003 ... >> Outlook doesn't support exporting custom fields. ... >> Sue Mosher, Outlook MVP ... >> Administrators, Power Users, and Developers ...
    (microsoft.public.outlook.program_forms)
  • Re: User email
    ... Author of Configuring Microsoft Outlook 2003 ... > Set objAddrEntry = Nothing ... >> Sue Mosher, Outlook MVP ... >> Administrators, Power Users, and Developers ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: Web Form -to- New Contact
    ... > Author of Configuring Microsoft Outlook 2003 ... >> Thanks to Sue Mosher for the script to create a new contact from all sent ... >> Submitted web form arrives as plain text email. ...
    (microsoft.public.outlook.program_vba)