DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub kod()
Application.ScreenUpdating = False
Dim H
'NOT: TOOLS-REFERENCES TIKLA
'MİCROSOFT OUTLOOK 12.0 İŞARETLİ OLMALI
For H = 2 To [A65536].End(3).Row
If Cells(H, "A") <> "" Or _
Cells(H, "A") Like "*@*" Then
With Application
.EnableEvents = True
End With
Dim objOutlook As Object
Dim objMail As Object
Dim i As Long, NoA As Long
Set objOutlook = CreateObject("Outlook.Application")
Set objMail = objOutlook.CreateItem(0)
With objMail
.To = Cells(H, "A").Value
'.CC = ""
.Subject = "Stop, Fiyat ve Aksiyon "
.Body = Cells(H, "B").Value
.Send
End With
Set objMail = Nothing
Set objOutlook = Nothing
End If
Next H
Application.ScreenUpdating = True
End Sub
Kod:Sub kod() Application.ScreenUpdating = False Dim H 'NOT: TOOLS-REFERENCES TIKLA 'MİCROSOFT OUTLOOK 12.0 İŞARETLİ OLMALI For H = 2 To [A65536].End(3).Row If Cells(H, "A") <> "" Or _ Cells(H, "A") Like "*@*" Then With Application .EnableEvents = True End With Dim objOutlook As Object Dim objMail As Object Dim i As Long, NoA As Long Set objOutlook = CreateObject("Outlook.Application") Set objMail = objOutlook.CreateItem(0) With objMail .To = Cells(H, "A").Value '.CC = "" .Subject = "Stop, Fiyat ve Aksiyon " .Body = Cells(H, "B").Value .Send End With Set objMail = Nothing Set objOutlook = Nothing End If Next H Application.ScreenUpdating = True End Sub
.Body = Cells(H, "B").Value kısmına araya & " " & ekleyerek istediğiniz hücreleri alabilirsiniz.
.Body = Cells(H, "B").Value & " " & Cells(H, "c").Value gibi.
eğer alt satıra yazsın istiyorsanız..
.Body = Cells(H, "B").Value & Chr(10) & Cells(H, "c").Value şeklinde devam edin.