New Help With Custom Form Event

J

John Lane

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
 
J

John Lane

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.
 
J

John Lane

And it's an .oft file...

John Lane said:
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.
 
K

Ken Slovak - [MVP - Outlook]

Script code won't run in OFT files, only in published custom forms.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top