M
Mike Miller
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
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