Macro to Send Email from Excel

FAUZAN

Board Regular
Joined
Feb 17, 2007
Messages
73
Hello All, I have record macro but have a problem in sending the email. My Macro did open Microsoft outlook. But I must write down the email address one by one. Iwant to send this email to example1@nothing.com, example2@nothing.com etc. Does anyone can help me to finish it?

Sub TEST4()

ActiveSheet.Range("$A$4:$N$2101").AutoFilter Field:=2, Criteria1:= _
"=Bandung", Operator:=xlOr, Criteria2:= _
"=Bandung MM"
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\Fauzan\AppData\Local\Temp\TEST KIRIM AUTO MAIL BY MACRO.pdf", _
Quality:=xlQualityStandard, IncludeDocProperties:=False, IgnorePrintAreas _
:=False, OpenAfterPublish:=False
Application.Dialogs(xlDialogSendMail).Show


End Sub


Thank's in advance


Fauzan
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Thank's for the reply. I've checked it and found it quite confusing to read them :D. I'm just a simply record macro person. But I'll learn and give it a try.
 
Upvote 0

Forum statistics

Threads
1,216,574
Messages
6,131,492
Members
449,653
Latest member
aurelius33

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