Can you generate Outlook tasks using VBScript?

M

mj.redfox.mj

I'm trying to use a VbScript to generate Outlook tasks for Windows
network users. I've been using the following code so far:

dim ol
dim olTask
set ol=createobject("Outlook.Application")
set olTask=ol.CreateItem(3)
with olTask
.DueDate="03/04/2006"
.Subject="Any Subject"
.Body="Any Body"
.Recipients.Add "<Recipient Name>"
.Assign
.send
end with
set ol=nothing
set olTask=nothing


However, If I use this method, I get the following prompt: 'A program
is trying to access e-mail addresses you have stored in Outlook. Do you
want to allow this?'

Only after clicking 'Yes' several times does the process continue.

I was wondering if anyone was able to answer me two questions:

1. Is it possible to somehow get around this prompt and just create the
task without Outlook asking permission? I know that using an add-in
called Outlook Redemption can help with this, but I really need to find
another way without resorting to this?

2. Even when the prompt is accepted, only an Outlook task INVITATION is
created, rather than the task itself. Is there any way of creating a
task using this kind of script, or would it always be an invitation?

Thank you if anyone is able to help!
 
S

Sue Mosher [MVP-Outlook]

See my response to your post in another groiup.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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