M
Mike M
I have a macro (see below) I use in Outlook 2003 to automatically send
some external files via email, and it works fine. Is there a way to use
a similiar macro to send a specific Outlook folder, such as the Calendar
folder?
Sub SendFiles()
Dim myItem As Outlook.MailItem
Dim myAttachments As Outlook.Attachments
Set myItem = Application.CreateItem(olMailItem)
Set myAttachments = myItem.Attachments
myItem.Recipients.Add "<email address>"
myItem.Subject = "Files"
myAttachments.Add "<path and filename, repeated for each file>"
myItem.Send
Set myItem = Nothing
Set myAttachments = Nothing
End Sub
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
some external files via email, and it works fine. Is there a way to use
a similiar macro to send a specific Outlook folder, such as the Calendar
folder?
Sub SendFiles()
Dim myItem As Outlook.MailItem
Dim myAttachments As Outlook.Attachments
Set myItem = Application.CreateItem(olMailItem)
Set myAttachments = myItem.Attachments
myItem.Recipients.Add "<email address>"
myItem.Subject = "Files"
myAttachments.Add "<path and filename, repeated for each file>"
myItem.Send
Set myItem = Nothing
Set myAttachments = Nothing
End Sub
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!