PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Print Multiple Attachments

Reply

Print Multiple Attachments

 
Thread Tools Rate Thread
Old 03-08-2004, 03:50 PM   #1
Mike
Guest
 
Posts: n/a
Default Print Multiple Attachments


I am wondering if there is a way to one by one select each
email in a specific folder, and print the attachment on
each one.

I have to print up to 200 attachments a day and would like
to save some time.

This is in Outlook 2002.

Any help would be great!
  Reply With Quote
Old 03-08-2004, 07:39 PM   #2
=?Utf-8?B?RXJpYyBMZWdhdWx0IFtNVlAgLSBPdXRsb29rXQ==
Guest
 
Posts: n/a
Default RE: Print Multiple Attachments

The problem is that Outlook doesn't handle the printing of the attachments - the default application for the file type is responsible. You'd have to save each attachment to the file system and use some kind of Print action (probably programmatically executing the Print command on the context menu for a file) on the full path of the file with the ShellExecute function from the Win32API (or the Shell function in VBA).

Also, you cannot programmatically select e-mails (the Selection property is read-only), but you can iterate through all e-mails in a given folder via the Folder.Items collection.

--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/



"Mike" wrote:

> I am wondering if there is a way to one by one select each
> email in a specific folder, and print the attachment on
> each one.
>
> I have to print up to 200 attachments a day and would like
> to save some time.
>
> This is in Outlook 2002.
>
> Any help would be great!
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off