script event does not fire

  • Thread starter Thread starter urs
  • Start date Start date
U

urs

I have written the following Script Event Code:

Function Item_Open()
MsgBox "Open"
End Function


Function Item_Send()
MsgBox "Send"
End Function

If I run the Form from within the sevelopment environment I get the two
events fired.
If I save it as an OFT file and start it by double clicking it opens
the form
with the correct content (proofs that it is the rigth file) but no
events are fired (no msgbox).

If I go into th edevelopment mode of the opened form it shoes the
scripts !!

any idea what i am doing wrongly?
 
Unpublished forms, i.e. .oft files, don't run code. You'll need to publish them. See http://www.outlookcode.com/d/formpub.htm

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

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