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

VBScript does not run in Outlook 2003



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 15th 09, 10:59 PM posted to microsoft.public.outlook.program_forms
N Motihar
external usenet poster
 
Posts: 1
Default VBScript does not run in Outlook 2003

Hi,

I am having an issue between outlook 2000 and 2003 forms. Custom form
that works in outlook 2000 now does not fire event or runs vbscript in
outlook 2003 client. Original form has "Send form definition with Item"
unchecked. If I check this and publish form in our test environment, vb
script does not execute on Outlook 2000 and Outlook 2003.

I need to make the vbscript on form work on both (outlook 2000 and
2003). Any suggestions would be appreciated.

Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Ads
  #2  
Old May 16th 09, 08:56 PM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default VBScript does not run in Outlook 2003

In article , N Motihar wrote:
I need to make the vbscript on form work on both (outlook 2000 and
2003). Any suggestions would be appreciated.

Outlook versions have never been backward compatible. You have to use
the outlook object browser in 2003 to find the new names of the
variables that you want to use. Then include branching test to make
sure that a form instance running on 2000 only executes the 2000 code,
and a form instance running on 2003 only executes the 2003 code. Lots
of fun, no?

--
Hollis Paul
Mukilteo, WA USA


  #3  
Old May 18th 09, 10:44 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default VBScript does not run in Outlook 2003

I don't know why you'd say that. Even in Outlook 2007, which has a Folder
object, MAPIFolder still works for backward compatibility with existing
code.

I would be looking at possible causes of one-off items and wondering where
this form is published and what folder(s) it's used in.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Hollis Paul" wrote in message
...
In article , N Motihar wrote:
I need to make the vbscript on form work on both (outlook 2000 and
2003). Any suggestions would be appreciated.

Outlook versions have never been backward compatible. You have to use
the outlook object browser in 2003 to find the new names of the
variables that you want to use. Then include branching test to make
sure that a form instance running on 2000 only executes the 2000 code,
and a form instance running on 2003 only executes the 2003 code. Lots
of fun, no?

--
Hollis Paul
Mukilteo, WA USA




  #4  
Old May 20th 09, 05:04 PM posted to microsoft.public.outlook.program_forms
Naresh Motihar
external usenet poster
 
Posts: 1
Default VBScript does not run in Outlook 2003

Hi Sue,

Thanks for the article. I have published the form and here is more
information I found. If I publish the form on Personal Forms Library folder,
the code behind the form executes in Outlook 2003, but publishing the form on
Organizational Forms Library causes the issue where the VBScript does not
run. Could this be related to permission issue?

Naresh

"Sue Mosher [MVP]" wrote:

I don't know why you'd say that. Even in Outlook 2007, which has a Folder
object, MAPIFolder still works for backward compatibility with existing
code.

I would be looking at possible causes of one-off items and wondering where
this form is published and what folder(s) it's used in.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Hollis Paul" wrote in message
...
In article , N Motihar wrote:
I need to make the vbscript on form work on both (outlook 2000 and
2003). Any suggestions would be appreciated.

Outlook versions have never been backward compatible. You have to use
the outlook object browser in 2003 to find the new names of the
variables that you want to use. Then include branching test to make
sure that a form instance running on 2000 only executes the 2000 code,
and a form instance running on 2003 only executes the 2003 code. Lots
of fun, no?

--
Hollis Paul
Mukilteo, WA USA





  #5  
Old May 26th 09, 03:46 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default VBScript does not run in Outlook 2003

You didn't check the "send form definition with item" box on the Properties
page of the form, did you? Never do that on a form with script.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Naresh Motihar" Naresh wrote in message
...
Hi Sue,

Thanks for the article. I have published the form and here is more
information I found. If I publish the form on Personal Forms Library
folder,
the code behind the form executes in Outlook 2003, but publishing the form
on
Organizational Forms Library causes the issue where the VBScript does not
run. Could this be related to permission issue?

Naresh

"Sue Mosher [MVP]" wrote:

I don't know why you'd say that. Even in Outlook 2007, which has a Folder
object, MAPIFolder still works for backward compatibility with existing
code.

I would be looking at possible causes of one-off items and wondering
where
this form is published and what folder(s) it's used in.


In article , N Motihar wrote:
I need to make the vbscript on form work on both (outlook 2000 and
2003). Any suggestions would be appreciated.



 




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
VBScript / SetFocus Chaos in Outlook 2003 Daryll Combs Outlook and VBA 6 December 13th 07 02:26 AM
Exchange 2003/Outlook 2003: VBScript-Error in personalized form Oskar Vaia Outlook - Using Forms 2 October 20th 07 07:49 AM
Outlook 2003 VBscript.dll error DianeC Outlook - Installation 3 April 5th 07 11:04 AM
calling a vbscript from a macro in Outlook 2003 Mads Remfeldt Outlook and VBA 1 November 23rd 06 05:32 PM
Outlook 2003 ADO connection string for use with VBScript... M Scott S Outlook and VBA 14 May 31st 06 10:14 PM


All times are GMT +1. The time now is 12:28 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.