Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / February 2006

Tip: Looking for answers? Try searching our database.

VBScript error with Outlook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matt - 03 Feb 2006 12:55 GMT
I'm having difficulty calling Outlook from VBScript.  It errors saying
ActiveX cannot call the object.  Here is a snippet:

    set ol = CreateObject("Outlook.Application")
    Set olns = ol.GetNameSpace("MAPI")
    Set myfolder = olns.GetDefaultFolder(13)
    Set myItem = myFolder.Items.Add("IPM.Task.Munitions Task")
    MyItem.Display

Anyone know why it won't recognize Outlook.Application?
Matt - 04 Feb 2006 20:06 GMT
If anyone is having this same problem, I found the answer.  Take a look at
this article.  Basically, I had to make the form fully trusted and digitally
sign it before it would allow the script to access local resources.

http://www.kbalertz.com/832512/CreateObject.function.ActiveXObject.function.gene
rate.script.error.InfoPath.aspx


> I'm having difficulty calling Outlook from VBScript.  It errors saying
> ActiveX cannot call the object.  Here is a snippet:
[quoted text clipped - 6 lines]
>
> Anyone know why it won't recognize Outlook.Application?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.