- Katılım
- 15 Mart 2011
- Mesajlar
- 10
- Excel Vers. ve Dili
- 2011
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
merhaba, ekteki dosyayı inceleyiniz.
Tablonun mail atabilmesi için;
microsoft outlook programının açık olması ve
microsoft excel kod ekranında references- microsoft outlook 12.0 object library seçeneği işaretli olmalı.
dosyanız açılıyor ama içi boş.
Outlook herzaman açık . Yapmam gerekeni söylerseniz ben ne gerekiyorsa yaparım sorun değil..
Sub mail()
With Application
.EnableEvents = True
.ScreenUpdating = 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 = "deneme@mail.com"
.Subject = "konu"
.Body = "mesaj"
.Save
.Send
'.Display
End With
Set objMail = Nothing
Set objOutlook = Nothing
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A1:A3")) Is Nothing Then
On Error Resume Next
If Target = "" Then Exit Sub
If "a1" + "a2" + "a3" > 160000 Then
Call mail
End If
End If
End Sub