Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Code to attach more than 1 document (http://www.outlookbanter.com/outlook-vba/8987-code-attach-more-than-1-a.html)

Jas March 21st 06 06:39 PM

Code to attach more than 1 document
 
I have created a form in excel and when you complete the form you can run a
macro that sends the form to the spcified mail recipient specififed in the
code. However, there maybe more than one document that the sender wants to
attach to that email...Is there any code to bring up a dialog box to allow it
to do this? i think that the people using excel wont really be hugely
advanced and I would rather give them a dialog box that allows them to search
for the document as you would normally in Outlook?

Michael Bauer March 22nd 06 06:41 AM

Code to attach more than 1 document
 
Am Tue, 21 Mar 2006 10:39:35 -0800 schrieb Jas:

As I donīt know your code I suppose: yes, probably you can add more
attachments.

Please look in Excel at the Application.FileDialog property. It should help
you finding the other files.

If you do have an Outlook MailItem object then simply add each file to its
Attachments collection.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


I have created a form in excel and when you complete the form you can run

a
macro that sends the form to the spcified mail recipient specififed in the
code. However, there maybe more than one document that the sender wants

to
attach to that email...Is there any code to bring up a dialog box to allow

it
to do this? i think that the people using excel wont really be hugely
advanced and I would rather give them a dialog box that allows them to

search
for the document as you would normally in Outlook?



All times are GMT +1. The time now is 07:48 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright Đ2004-2006 OutlookBanter.com