A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook File Attachment Based on Contact Name



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 3rd 09, 05:56 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook File Attachment Based on Contact Name

Based on your requirements I'd recommend using a COM addin and handling the
Application_ItemSend event. If you aren't deploying the code to anyone else
then you can use that event from VBA code. That event can be used to get all
the recipients of the message and to add attachments or to modify the email
body with whatever information you need.

As before, I'd suggest searching at www.outlookcode.com for code to get you
started. There are many examples of ItemSend handlers there in various
languages.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Dan" danthafdelin[at]gmail[dot]com wrote in message
...
Thanks for the reply. This would all need to be performed through Outlook.
The files would be generated by the database but that's pretty much the
only area that Access would play a part. I would need it be setup, so when
they hit send it would trigger everything or even if I could create a
button that would work just as well.

This would be done in Outlook 2007. The user also has business contact
manager, so I don't know if that makes anything easier.
Basic sequence of events would be this.

1. User creates an e-mail.
2. A contact is selected.
3. E-Mail is sent with corresponding file attachment or information in the
message.

If the event could even be triggered when the contact would be selected
that would work just as well.

I am familiar with VBA but as I'm sure you know VBA differs between the
Office applications. Same basic syntax but you have objects and such that
are specific to each app. Any suggestions?


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there an Outlook contact program that is household based? Curious Sue Outlook - Using Contacts 5 May 13th 09 03:36 PM
new contact based on existing contact Bob Day Outlook - Using Contacts 3 August 11th 08 09:05 PM
Outlook contacts to web based contact group adadad Outlook - Using Contacts 1 November 28th 06 02:33 PM
Autosave attachment and create text file based on information in email. [email protected] Outlook and VBA 3 September 5th 06 05:25 AM
Can I replace the attachment file when double chick attachment? [email protected] Outlook - General Queries 3 August 3rd 06 04:10 PM


All times are GMT +1. The time now is 03:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.