VBScript does not run in Outlook 2003

N

N Motihar

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 ***
 
H

Hollis Paul

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?
 
S

Sue Mosher [MVP]

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

Naresh Motihar

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
 
S

Sue Mosher [MVP]

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
 

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