Hi
Add a reference to Microsoft Excel.
Try the following.
Sheets("Sheet1").Select
dname = Range("B1").Value 'defines data for subject
Dim objol As New Outlook.Application
Dim objmail As MailItem
Set objol = New Outlook.Application
Set objmail = objol.createitem(olmailitem)
With objmail
.To = "whoever" 'enter in here the email address
.cc = "whoever" 'enter in here the email address
.Subject = "Daily test email for " & dname
.Body = "Please find attached the teste email" & _
vbCrLf & "If you have any queries can you please let me know" & vbCrLf
.NoAging = True
.Attachments.Add ThisWorkbook.FullName 'adds attachment to email
.display
End With
Set objmail = Nothing
Set objol = Nothing
SendKeys "%{s}", True 'send the email without prompts