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

VBA code for Outlook doesn't works in some cases



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 29th 09, 10:22 AM posted to microsoft.public.outlook.program_vba
Kalyan
external usenet poster
 
Posts: 8
Default VBA code for Outlook doesn't works in some cases

Hi everyone,
I have developed a vbscript in a webapplication to access Outlook
addressbook which uses Outlook API and Redemption. It is working. However, in
particular a particular scenario, When try my application with IE7 and
Outlook 2003, It can't able to create "Outlook.Application" object. And my
application is developed in .Net with some Flash controls(SWF).
Note: If I try the vbscript from a simple HTML its working fine in same
scenario (IE7 and Outlook2003)
Can anybody help me on this?What should I do to make it work in application
with Flash component?
Ads
  #2  
Old January 29th 09, 02:41 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default VBA code for Outlook doesn't works in some cases

Not being able to create an Outlook.Application object has nothing to do
with your HTML or using Flash. That may still be a problem but has nothing
to do with this.

Are you running the actual code on the same machine and in the same domain
as when you test? Is there anything running on the machine where it fails
that could prevent a script from using CreateObject or GetObject or New.
What you'd be looking for is some sort of script stopper, often they come
with anti-virus packages such as Norton and McAfee or with software
firewalls.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Kalyan" wrote in message
...
Hi everyone,
I have developed a vbscript in a webapplication to access Outlook
addressbook which uses Outlook API and Redemption. It is working. However,
in
particular a particular scenario, When try my application with IE7 and
Outlook 2003, It can't able to create "Outlook.Application" object. And my
application is developed in .Net with some Flash controls(SWF).
Note: If I try the vbscript from a simple HTML its working fine in same
scenario (IE7 and Outlook2003)
Can anybody help me on this?What should I do to make it work in
application
with Flash component?


  #3  
Old January 29th 09, 03:42 PM posted to microsoft.public.outlook.program_vba
Kalyan
external usenet poster
 
Posts: 8
Default VBA code for Outlook doesn't works in some cases

In the same machine..
When I call from a simple HTML page, the same vbscript code is working fine.
But thru the application it is not creating the object. In application I'm
using Flash control(FLEX) and calling the script thru ActionScript.

Application works fine in (machines in same domain with similar
configuration) having [IE7 and Outlook 2007],[IE6 and Outlook 2003],[IE6 and
Outlook 2007]

"Ken Slovak - [MVP - Outlook]" wrote:

Not being able to create an Outlook.Application object has nothing to do
with your HTML or using Flash. That may still be a problem but has nothing
to do with this.

Are you running the actual code on the same machine and in the same domain
as when you test? Is there anything running on the machine where it fails
that could prevent a script from using CreateObject or GetObject or New.
What you'd be looking for is some sort of script stopper, often they come
with anti-virus packages such as Norton and McAfee or with software
firewalls.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Kalyan" wrote in message
...
Hi everyone,
I have developed a vbscript in a webapplication to access Outlook
addressbook which uses Outlook API and Redemption. It is working. However,
in
particular a particular scenario, When try my application with IE7 and
Outlook 2003, It can't able to create "Outlook.Application" object. And my
application is developed in .Net with some Flash controls(SWF).
Note: If I try the vbscript from a simple HTML its working fine in same
scenario (IE7 and Outlook2003)
Can anybody help me on this?What should I do to make it work in
application
with Flash component?



  #4  
Old January 29th 09, 06:58 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default VBA code for Outlook doesn't works in some cases

Then there might be some problem with Flash or how you're calling the script
from ActionScript, whatever that is. I try to avoid Flash like the plague so
I can't help with that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Kalyan" wrote in message
...
In the same machine..
When I call from a simple HTML page, the same vbscript code is working
fine.
But thru the application it is not creating the object. In application I'm
using Flash control(FLEX) and calling the script thru ActionScript.

Application works fine in (machines in same domain with similar
configuration) having [IE7 and Outlook 2007],[IE6 and Outlook 2003],[IE6
and
Outlook 2007]


  #5  
Old January 29th 09, 11:36 PM posted to microsoft.public.outlook.program_vba
Norman Yuan
external usenet poster
 
Posts: 14
Default VBA code for Outlook doesn't works in some cases

VBA code? If your application is a web application, it runs by a web server.
Since you said "vbscript", I assume the web server is IIS.

Firstly, is this web application is only meant for single user (since it
automate an Outlook)? Do you automation Outlook with server side code (the
web application) or with client side script (can be javascript or vbscript,
since you use IE). Note, even you run whole thing in the same computer,
there is still difference between server side code and client side code.

Secondly, if you use server side code to automate Outlook, you have to make
sure the account used by IIS/web server to run your web app has the
permission to run Outlook (usually not, for most type of web app, such as
ASP.NET. BTW, what kind of web app is it?).

Finally, if your app runs on a server computer, you need to install Outlook
to that server computer (but which user profile the Outlook should be
configured to use? I do not know). If your app is meant to automate user's
Outlook, server side code cannot do that unless the web app runs on each
users' computer (then users' computer must have IIS installed).


"Kalyan" wrote in message
...
Hi everyone,
I have developed a vbscript in a webapplication to access Outlook
addressbook which uses Outlook API and Redemption. It is working. However,
in
particular a particular scenario, When try my application with IE7 and
Outlook 2003, It can't able to create "Outlook.Application" object. And my
application is developed in .Net with some Flash controls(SWF).
Note: If I try the vbscript from a simple HTML its working fine in same
scenario (IE7 and Outlook2003)
Can anybody help me on this?What should I do to make it work in
application
with Flash component?


  #6  
Old January 30th 09, 06:21 AM posted to microsoft.public.outlook.program_vba
Kalyan
external usenet poster
 
Posts: 8
Default VBA code for Outlook doesn't works in some cases

Hi Norman,

1. Its a web application running in IIS, used by multiple users. It contains
some Flash(SWF) UI controls
2. VBScript -is clientside script invoked on button click. It accesses the
outlook on user's (client) computer.
3. The application is WORKING FINE in these combination [IE6 & Outlook
2003],[IE6 and Outlook 2007][IE7 & Outlook 2007] on all the Windows machine
that have these IE and outlook versions
4. The PROBLEM is its NOT working in "IE7 & Outlook 2003" combination.
5. However, when I write a simple (Seperate) HTML file with same
vbscript(clientside) and invoke the function, Its woking fine.
The line below gives "Cannot create object" error (in #4 combination)

Set objOutlook1 = CreateObject("Outlook.Application")

I hope this is clear. Is there any compatability issue with Flash activex
and the above "CreateObject"
OS : Windows XP Professional SP2


"Norman Yuan" wrote:

VBA code? If your application is a web application, it runs by a web server.
Since you said "vbscript", I assume the web server is IIS.

Firstly, is this web application is only meant for single user (since it
automate an Outlook)? Do you automation Outlook with server side code (the
web application) or with client side script (can be javascript or vbscript,
since you use IE). Note, even you run whole thing in the same computer,
there is still difference between server side code and client side code.

Secondly, if you use server side code to automate Outlook, you have to make
sure the account used by IIS/web server to run your web app has the
permission to run Outlook (usually not, for most type of web app, such as
ASP.NET. BTW, what kind of web app is it?).

Finally, if your app runs on a server computer, you need to install Outlook
to that server computer (but which user profile the Outlook should be
configured to use? I do not know). If your app is meant to automate user's
Outlook, server side code cannot do that unless the web app runs on each
users' computer (then users' computer must have IIS installed).


"Kalyan" wrote in message
...
Hi everyone,
I have developed a vbscript in a webapplication to access Outlook
addressbook which uses Outlook API and Redemption. It is working. However,
in
particular a particular scenario, When try my application with IE7 and
Outlook 2003, It can't able to create "Outlook.Application" object. And my
application is developed in .Net with some Flash controls(SWF).
Note: If I try the vbscript from a simple HTML its working fine in same
scenario (IE7 and Outlook2003)
Can anybody help me on this?What should I do to make it work in
application
with Flash component?



 




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
Undo does not work in most cases! Lech Outlook - Calandaring 6 December 30th 08 10:14 PM
Spam with Exchange junk e-mail setting doesnt goto the "junk e-mail" folder in all cases/people.. 2007/2003 outlook markm75 Outlook - General Queries 3 October 12th 07 05:48 PM
Spam with Exchange junk e-mail setting doesnt goto the "junk e-mail" folder in all cases/people.. 2007/2003 outlook markm75 Outlook - General Queries 0 October 11th 07 10:27 PM
Two cases of same Folder group in Outlook 2003 Russ Valentine [MVP-Outlook] Outlook - General Queries 2 January 17th 07 01:37 AM
outlook email - works on two PCs - not one one [email protected] Outlook - Installation 1 June 28th 06 04:22 PM


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