In Excel 2003 VBA email macro works fine but no information to user. How do I add this to the macro

This code works fine:
Sub Send_Email_Current_Workbook()
Dim OutApp As Object
Dim OutMail As Object
 
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
 
On Error Resume Next
With OutMail
.To = "xxxxxxxx.xxxxxx@xxxx.xxxx.uk"
.CC = ""
.BCC = ""
.Subject = "XXX Update"
.Body = "See attached"
.Attachments.Add ActiveWorkbook.FullName
 
.Send
End With
On Error GoTo 0
 
Set OutMail = Nothing
Set OutApp = Nothing
End Sub

Open in new window

but the only confirmation is seeing an email in the Sent items. Just something to say that it has been sent would be fine, user input is not necessarily needed.

Robin, London
PitfourAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

p_sieCommented:
You could use a messagebox. Something like:
 
MsgBox "E-mail is sent. ", vbInformation

Open in new window


Place it after the .Send command you use. and remove the On Error Resume Next on line 9, because that would cause the messagebox to Always be displayed.

Notice: Excel does not know if the mail is delivered to the recipient.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin LissOlder than dirtCommented:
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
p_sieCommented:
I think the asker could certainly give the user information about the fact that a e-mail message has been sent.
 So I think the question is answered.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.