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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

New Help With Custom Form Event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 25th 07, 03:38 PM posted to microsoft.public.outlook.program_vba
John Lane
external usenet poster
 
Posts: 26
Default 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
Ads
  #2  
Old April 25th 07, 05:06 PM posted to microsoft.public.outlook.program_vba
John Lane
external usenet poster
 
Posts: 26
Default 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

  #3  
Old April 25th 07, 05:14 PM posted to microsoft.public.outlook.program_vba
John Lane
external usenet poster
 
Posts: 26
Default 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

  #4  
Old April 25th 07, 08:18 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


 




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
ou2007 custom form icon change on event fileman Outlook - Using Forms 5 March 29th 07 01:22 PM
forward event of Custom form cynthia Outlook - Using Forms 5 March 9th 07 03:37 PM
Custom Event Form Anne Outlook - Using Forms 0 August 25th 06 10:59 PM
Adding/Using a custom form during the NewInspector event Tom at GSD Add-ins for Outlook 3 July 12th 06 11:21 PM
How to handling Custom Form Control Event in VB Com Add-In? Raphaël ZHOU \(Jadiam\) Outlook - Using Forms 1 January 11th 06 08:31 AM


All times are GMT +1. The time now is 08:30 PM.


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.