Assigning a task in Outlook from Project

B

Billy

Hi,
I have experimented with the code offered above and it works well. I
would like to perform this transfer to outlook tasks only on selected
items though. I have accomplished this, but I wanted to go one step
further and send this to any people who were mentioned my Microsoft
Project's Resource name field. The problem comes in attempting to
invoke the "assign task" and input the people's names in the TO
field. It seems like the task has transitioned into an e-mail and
currently there is no

Dim olMail As Outlook.MailItem or other code.

Can anyone suggest what additional changes might be needed in order to
assign tasks in the mail and then send the mail?
 
J

Jan De Messemaeker

Hi,

I have had some success <ith the mailsend function:

MailSend Method
See AlsoApplies ToExampleSpecifics

Sends a mail message.


Syntax

expression .MailSend(To, Cc, Subject, Body, Enclosures, IncludeDocument,
ReturnReceipt, Bcc, Urgent, SaveCopy, AddRecipient)

expression Optional. An expression that returns an Application object.

To Optional String. The user names of the primary recipients of the
message, separated by commas.

Cc Optional String. The user names of the secondary recipients of the
message, separated by commas.

Subject Optional String. The subject of the message.

Body Optional String. The main text of the message.

Enclosures Optional String. The file names of one or more files to
include with the message. Use the list separator character to separate
multiple file names. Do not add space between the list separator and the
file name.

IncludeDocument Optional Boolean. True if the active project is included
in the message. The default value is True.

ReturnReceipt Optional Boolean. True if a message is sent to the sender
when the recipient opens the message. The default value is False.

Bcc Optional String. The user names of the message recipients which are
not displayed, separated by semicolons. This argument is only supported in
Microsoft Project for the Macintosh version 4.0.

Urgent Optional Boolean. True if the message is given a high priority.
This argument is only supported in Microsoft Project for the Macintosh
version 4.0.

SaveCopy Optional Boolean. True if a copy of the message is saved in the
Sent Items folder. This argument is only supported in Microsoft Project for
the Macintosh version 4.0.

AddRecipient Optional Boolean. True if recipients of the message are
added to a personal address book. This argument is only supported in
Microsoft Project for the Macintosh version 4.0.


Remarks
If the MailSend method is used without specifying any arguments and there
are no existing routing slips, a standard compose mail window appears with
the active project as an embedded object. Otherwise, using the MailSend
method without specifying any arguments prompts whether or not to use the
routing slip.
 

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