View Single Post
  #6  
Old October 13th 08, 03:28 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Using Object Data in VBScript

So, you'll need something in your Item_Send event handler to distinguish new
items from forwarded items, right? Maybe the FW: prefix on the subject would
be sufficient?

Why do you think your control name is stupid? As long as it makes sense to
you (and will still make sense 6 months from now when you update the code), a
control name can be anything you like.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54

"Gary Newport" wrote:

Sorry, should have explained better...

I have a textbox called txtSendStudent (stupid name but running out of ideas
at present). I have created a field called Student and have bound the textbox
to this field.

I now have the code you gave me and it works...sort of.

If I fill out the initial email and click SEND the message is sent with the
subject being "Round Robin for" being shown. When I forward the form back
then the subject changes to "Round Robin for student name".

The desired effect but I want it to change the subject before the initial
send and not once the form is returned.

Ads