PC Review


Reply
Thread Tools Rate Thread

Detach attachments

 
 
=?Utf-8?B?c3RldjM3OQ==?=
Guest
Posts: n/a
 
      30th Sep 2005
Mom's old Mac won't connect to the printer so she forwards her attachments to
me, but she has to wait for me to come home to print since she can't handle a
PC (I know, I know...).

How can I program Outlook XP to automatically print attachments from a
specific sender? I found apps on the net that will do it, but I'd rather
learn how to program Outlook.

Thanks for any help or suggestions!!
I've got some VBS experience, but have never programmed in Outlook.
 
Reply With Quote
 
 
 
 
Michael Bauer
Guest
Posts: n/a
 
      4th Oct 2005
Am Fri, 30 Sep 2005 10:29:01 -0700 schrieb stev379:

You could use a rule to move your Momīs mails into a specific folder. Then
use the folderīs ItemAdd event to check for attachments. They need to be
saved on to the file system with the Attachment.SaveAsFile method.

Both, ItemAdd and SaveAsFile, are explained in the VBA help.

After saving the attachment you can print every file with the following
sample, assuming thereīs a proper application for the file on your computer.

Private Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Public Function PrintFile(sFile As String) As Boolean
PrintFile = CBool(ShellExecute(0, "print", sFile, vbNullString,
vbNullString, 0))
End Function


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook

> Mom's old Mac won't connect to the printer so she forwards her attachments

to
> me, but she has to wait for me to come home to print since she can't

handle a
> PC (I know, I know...).
>
> How can I program Outlook XP to automatically print attachments from a
> specific sender? I found apps on the net that will do it, but I'd rather
> learn how to program Outlook.
>
> Thanks for any help or suggestions!!
> I've got some VBS experience, but have never programmed in Outlook.

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to detach attachments Martin McNeill via OfficeKB.com Microsoft Outlook Discussion 1 5th Apr 2005 05:00 PM
I'd like an option in Outlook to detach and store attachments =?Utf-8?B?cm9iYmll?= Microsoft Outlook Discussion 1 28th Jan 2005 02:38 AM
How to detach CPU from heatsink? pompless DIY PC 1 24th Jun 2004 01:01 AM
EZ Detach TW Microsoft Outlook Third-Party Utilities 0 20th Jan 2004 07:38 PM
Is there a way to detach attachments? Sandy Modesitt Microsoft Outlook Discussion 6 10th Dec 2003 04:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:35 AM.