Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook VBA - driving me crazy!?

Status
Not open for further replies.

CJAI

MIS
Oct 21, 2003
224
US
OK, I need to write some VBA to accomplish the following:

When a Mail item is dragged to the Task folder, any attachments in the mail message need to be copied over as well.

I have been searching the heck out of the internet and have not found any examples of this.

I've tried (unsuccessful) using the _BeforeItemPaste and _ItemAdd event handlers. It seems _BeforeItemPaste is good for getting the mail messages attachments, but does not bridge the gap to a full solution because it happens BEFORE the task is created. _ItemAddITem is good for assigning values to the task AFTER it is created however theres no way at this point to access the original mail items attachments.

Anyone done this before or seen examples?? Please help :(

Thanks
 
You may play with global variables populated in the _BeforeItemPaste event and retrieved in the _ItemAddITem one.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Not really lol??? Can you please explain more?

Thanks much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top