Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   New Help With Custom Form Event (http://www.outlookbanter.com/outlook-vba/46906-new-help-custom-form-event.html)

John Lane April 25th 07 03:38 PM

New Help With Custom Form Event
 
Below is code I have in a custom Outlook (2003) form but it doesn't fire
when I change or click into the Subject field or any field. Does "Item" have
to be defined or something? I followed the example in KB article 171246.
Thanks.

Sub Item_PropertyChange (ByVal myPropertyName)
msgbox "here1"
If myPropertyName = "Subject" then
msgbox "hello - Subject"
End if

John Lane April 25th 07 05:06 PM

New Help With Custom Form Event
 
That should have read "Need Help...!

I also should have added that I put the code in the Script Editor pane and
it didn't work, and then I tried it in the Visual Basid Editor (Alt F11) and
it didn't work there either.

"John Lane" wrote:

Below is code I have in a custom Outlook (2003) form but it doesn't fire
when I change or click into the Subject field or any field. Does "Item" have
to be defined or something? I followed the example in KB article 171246.
Thanks.

Sub Item_PropertyChange (ByVal myPropertyName)
msgbox "here1"
If myPropertyName = "Subject" then
msgbox "hello - Subject"
End if


John Lane April 25th 07 05:14 PM

New Help With Custom Form Event
 
And it's an .oft file...

"John Lane" wrote:

That should have read "Need Help...!

I also should have added that I put the code in the Script Editor pane and
it didn't work, and then I tried it in the Visual Basid Editor (Alt F11) and
it didn't work there either.

"John Lane" wrote:

Below is code I have in a custom Outlook (2003) form but it doesn't fire
when I change or click into the Subject field or any field. Does "Item" have
to be defined or something? I followed the example in KB article 171246.
Thanks.

Sub Item_PropertyChange (ByVal myPropertyName)
msgbox "here1"
If myPropertyName = "Subject" then
msgbox "hello - Subject"
End if


Ken Slovak - [MVP - Outlook] April 25th 07 08:18 PM

New Help With Custom Form Event
 
Script code won't run in OFT files, only in published custom forms.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"John Lane" wrote in message
...
And it's an .oft file...

"John Lane" wrote:

That should have read "Need Help...!

I also should have added that I put the code in the Script Editor pane
and
it didn't work, and then I tried it in the Visual Basid Editor (Alt F11)
and
it didn't work there either.

"John Lane" wrote:

Below is code I have in a custom Outlook (2003) form but it doesn't
fire
when I change or click into the Subject field or any field. Does "Item"
have
to be defined or something? I followed the example in KB article
171246.
Thanks.

Sub Item_PropertyChange (ByVal myPropertyName)
msgbox "here1"
If myPropertyName = "Subject" then
msgbox "hello - Subject"
End if




All times are GMT +1. The time now is 09:26 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-2006 OutlookBanter.com