Macro For Sending Mail with Attachemnt

nambiram

New Member
Joined
Apr 14, 2011
Messages
2
Hai
I am New To macro.

I Need to send my Daily Progress Report by Email Regularly to 10 e-Mail id.
I need a macro which will automatically Attach the Excel Workbook & mail to Email Id in Sheet 1 Range (A1:A10)
With
Subject = Sheet 1 ("B2 Value")
Body = Herewith DPR ("B2 Value) is attached .Plz Find the Encl File.
Signature = Regards Mani
I am Using Excel & outlook 2003
Regards
Mani
 
Last edited:

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Sir
Thanks for the Immediate Reply
I Tried the Link & i Used The Following code


Sub Mail_workbook_1()
Dim wb As Workbook
Dim I As Long
Set wb = ThisWorkbook
If Val(Application.Version) >= 12 Then
If wb.FileFormat = 51 And wb.HasVBProject = True Then
MsgBox "There is VBA code in this xlsx file, there will" & vbNewLine & _
"be no VBA code in the file you send. Save the" & vbNewLine & _
"file first as xlsm and then try the macro again.", vbInformation
Exit Sub
End If
End If
On Error Resume Next
For I = 1 To 3
wb.SendMail mani_nambiram@yahoo.co.in, _
"DPR 14.1.11"
If Err.Number = 0 Then Exit For
Next I
On Error GoTo 0
End Sub

But i Didnt Succeed Can u say me waht is the Problem

I am using Excel 2003

Regards

Mani
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top