Drag on Drop from email message to custom form - no attachment

M

Matt

Hi

I have created a custom form which is saved in my "Organizational Forms"
library in Exchange. I would like to be able to drag an email message with an
attachment into the folder (the public folder has the custom form setup as
the default when posting) . When the email is dragged into the folder the
custom form is created and all of the message body is copied over, this works
OK. But I need emails with attachments, for the attachment to be copied into
the custom form also.

I think this is one for Sue Mosher, I looked at the code example in your
book to copy attachments but I cannot get this to work..

I have added the two sub routines CopyAttachmentsDemo() & Sub
CopyAttachments(objSourceItem As Object, objTargetItem As Object) to the
script editor, is this correct?

I have added the code to the custom form, is this correct? Does it need to
be in the source item or the destination item..?

When I drag and drop the email into the folder I get a script error
"Expected End of Statement Line No: 2 (line 2 in the script is Dim objApp As
Outlook.Application in the CopyAttachmentsDemo() sub..?

Could you advise what I am doing wrong, the code was copied from the example
in the book..

Regards

Matt
 
M

Matt

Just wondering if anyone has had a chance to look into this...it's really got
me baffled..!

Any help would be much appreciated

Regards

Matt
 

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