vba - Extracting attachment from an attachment -
i have macros save attachments in specific folder. works following code: atmt.saveasfile
some emails contain email attachment contain desired file. how extract such second-level attachment?
update: thank suggestions. following works:
for each atmt in zmsg.attachments 'loop through attachments atmt.saveasfile destpath & atmt.filename set zmsg2 = application.createitemfromtemplate(destpath & atmt.filename) each atmt2 in zmsg2.attachments atmt2.saveasfile destpath & atmt2.filename next set zmsg2 = nothing kill destpath & atmt.filename next
Comments
Post a Comment