Hello All
Hoping for some help
I store all my scanned documents in a folder and want to email them all individually to the same email address with a subject of teh filename without the .pdf extension.
I'm using Outlook 2013 and can get the VBA to send a mail working (From Sue Mosher's post) but have no idea how to cycle through all the files and extract their filenames without the extension to put in the subject
Here's the code I have so far
Set objOL = CreateObject("Outlook.Application")
Set objMail = objOL.CreateItem(0)
With objMail
.Subject = "Filename without Extension"
.To = "Email Address"
.Attachments.Add "c:\scans|filename"
.send
End With
Can anyone help? if so much appreciated
Thanks
Hoping for some help
I store all my scanned documents in a folder and want to email them all individually to the same email address with a subject of teh filename without the .pdf extension.
I'm using Outlook 2013 and can get the VBA to send a mail working (From Sue Mosher's post) but have no idea how to cycle through all the files and extract their filenames without the extension to put in the subject
Here's the code I have so far
Set objOL = CreateObject("Outlook.Application")
Set objMail = objOL.CreateItem(0)
With objMail
.Subject = "Filename without Extension"
.To = "Email Address"
.Attachments.Add "c:\scans|filename"
.send
End With
Can anyone help? if so much appreciated
Thanks