Tevfik_Kursun
Altın Üye
- Katılım
- 30 Temmuz 2012
- Mesajlar
- 3,904
- Excel Vers. ve Dili
- Office 2016 Pro - Türkçe 64 Bit
Merhaba Arkadaşlar,
Sayın Korhan Ayhan hocanın 18.09.2015 teki çalışması arka arkaya istenen sayıda adrese mail atabiliyor.
Denedim, sorunsuz çalışıyor. Bir kere daha teşekkür ederim.
dosya ekleme satırını nereye eklemeliyim?
Bir de bu koda nasıl teslim bilgisi isteme, okundu bilgisi isteme eklenebilir?
Saygılarımla
Sayın Korhan Ayhan hocanın 18.09.2015 teki çalışması arka arkaya istenen sayıda adrese mail atabiliyor.
Kod:
Option Explicit
Sub Mail_Gonder()
Dim Alan As Range, Veri As Range, Adres As String
On Error GoTo Son
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
Set Alan = Range("A1:G20")
For Each Veri In Range("R1:R5")
If Veri.Value <> "" Then
If Adres = "" Then
Adres = Veri.Value
Else
Adres = Adres & ";" & Veri.Value
End If
End If
Next
With Alan
ActiveWorkbook.EnvelopeVisible = True
With .Parent.MailEnvelope
.Introduction = ""
With .Item
.To = Adres
.CC = "ugomortr@yahoo.com"
.BCC = "ugomortr@yahoo.com"
.Subject = "Online Satış Kargo Bilgileriniz"
.Send
End With
End With
End With
Son:
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
ActiveWorkbook.EnvelopeVisible = False
End Sub
Kod:
.Attachments.Add ThisWorkbook.Path & "\" & Cells(2, "Z").Value
Bir de bu koda nasıl teslim bilgisi isteme, okundu bilgisi isteme eklenebilir?
Saygılarımla
