DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub KOD_MAİL()
If Sheets("Sayfa1").Range("A1") = "" Then
MsgBox "Metin Yok "
Else
Application.ScreenUpdating = False
'NOT: TOOLS-REFERENCES TIKLA
'MİCROSOFT OUTLOOK 12.0 İŞARETLİ OLMALI
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 = Sheets("Sayfa1").Range("A3")
'.CC = ""
.Subject = "Hesap Bakiyeniz Hk."
.Body = Sheets("Sayfa1").Range("A1")
'.Attachments.Add 'Ek
'.Importance = 2 'önem düzeyi 2:yüksek 1:normal 0:düşük
.Save
.Send
'.Display
End With
Set objMail = Nothing
Set objOutlook = Nothing
Application.ScreenUpdating = True
MsgBox Sheets("Sayfa1").Range("A3") & " adresine " & Chr(10) & "Mail gönderildi."
End If
End Sub