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