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

Sending Multiple Attachments from Outlook



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old August 3rd 06, 10:40 PM posted to microsoft.public.outlook.program_vba
Bob B.
external usenet poster
 
Posts: 6
Default Sending Multiple Attachments from Outlook

I have an ACCESS database that writes anywhere from 1 to 3 reports to a
static directory (C:\Mfg_Software\EMails\FileName.pdf). The directory is
emptied by the code prior to writing the pdf's so the only files in it are
the ones I want to send. What I would like to do is press a button and have
it attach all files from that directory to my note. I found the following
example from Eric Legault from 8/23/2005 that looked like it would work but I
can't get it to.

Sub AddAttachments()

Dim objItem As Object

If ActiveExplorer.Selection.Count = 0 Then Exit Sub

For Each objItem In ActiveExplorer.Selecion
objItem.Attachments.Add ("C:\Mfg_Software\EMails\147.pdf")
objItem.Save
Next

End Sub

I am using a static file name in this example but can handle the multiple
names through code if I can just get the Attachment to work. Can anyone out
there give me some insight as to what I am doing wrong? I have Outlook 2003
and tried using this as a macro from the Main Outlook screen as well as from
inside a new note.
Thank You in advance for any help you can give me.

Regards,

Bob
 




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
Outlook Express sending 'extra' attachments... Nick Outlook Express 1 April 25th 06 09:16 PM
Problem sending attachments Newguyhere Outlook Express 5 April 11th 06 05:05 AM
Problems sending attachments in Outlook 2003, but works through VNC Gavin Hanover Outlook - General Queries 0 January 26th 06 06:14 PM
Outlook deadly slow (mostly static!) when sending attachments Spamfree! Outlook - General Queries 2 January 24th 06 05:04 PM
attachments disappear when sending from Act! through Outlook doug2000 Outlook - Installation 0 January 11th 06 01:05 AM


All times are GMT +1. The time now is 09:00 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.