A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

script event does not fire



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 25th 06, 05:33 PM posted to microsoft.public.outlook
urs
external usenet poster
 
Posts: 3
Default script event does not fire

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?

Ads
  #2  
Old February 27th 06, 04:57 PM posted to microsoft.public.outlook
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default script event does not fire

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"urs" wrote in message oups.com...
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?

  #3  
Old March 1st 06, 04:55 PM posted to microsoft.public.outlook
urs
external usenet poster
 
Posts: 3
Default script event does not fire

That's Fine! Thanks a lot! Problem is solved for me.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phone Slip VB Script? or other Soluton? Attila Csokai Outlook - General Queries 2 February 15th 06 07:27 PM
How to send private messages with this script ON?? moony marouane Outlook - General Queries 1 January 30th 06 10:30 AM
resend email from calendar event? Mr . . Outlook - General Queries 1 January 27th 06 04:18 PM
Outlook 2003 startup script error [email protected] Outlook - General Queries 0 January 24th 06 07:34 PM
Traping AttachmentRead event on preview pane Outlook 2000 [email protected] Outlook - General Queries 1 January 18th 06 03:07 PM


All times are GMT +1. The time now is 04:11 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-2025 Outlook Banter.
The comments are property of their posters.