DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub auto_open()
If Format(WorksheetFunction.Weekday(Date), "dddd") = "Cuma" Then
If Format(Time, "hh:mm") >= "10:00" Then
Set OutApp = New Outlook.Application
Set NewMail = CreateItem(olMailItem)
With NewMail
.To = "aaa@aaa.com"
.Subject = "deneme"
.Body = "Sayın Yetkili Bu mail ekte görmüş olduğunuz mail bilgi için gönderilmiştir."
.Attachments.Add "C:\deneme.txt"
.Send
End With
Set NewMail = Nothing
Set OutApp = Nothing
End If
End If
End Sub
Sub auto_open()'Dosya açıldığında otomatik çalış
If Format(WorksheetFunction.Weekday(Date), "dddd") = "Cuma" Then 'Haftanın günü Cuma ise
If Format(Time, "hh:mm") >= "10:00" Then'Saat 10 yada 10 dan büyük ise
mailat'maili gönder
Else
Application.OnTime TimeValue("10:00:00"), "mailat" ''Saat 10 dan küçük ise tam 10 da mail at
End If
End Sub
Sub mailat()
Set OutApp = New Outlook.Application
Set NewMail = CreateItem(olMailItem)
With NewMail
.To = "aaa@aaa.com"
.Subject = "deneme"
.Body = "Sayın Yetkili Bu mail ekte görmüş olduğunuz mail bilgi için gönderilmiştir."
.Attachments.Add "C:\deneme.txt"
.Send
End With
Set NewMail = Nothing
Set OutApp = Nothing
End If
End Sub
Sub auto_open() 'Dosya açıldığında otomatik çalış
' If Format(WorksheetFunction.Weekday(Date), "dddd") = "Cuma" Then 'Haftanın günü Cuma ise
If Format(Time, "hh:mm") >= "10:00" Then 'Saat 10 yada 10 dan büyük ise
mailat 'maili gönder
Else
Application.OnTime TimeValue("10:00:00"), "mailat" ''Saat 10 dan küçük ise tam 10 da mail at
End If
End Sub
Sub mailat()
Set OutApp = New Outlook.Application
Set NewMail = CreateItem(olMailItem)
With NewMail
.to = "aaa@qqq.com;bbb@ccc.com"
.Subject = "deneme"
.Body = "Sayın Yetkili Bu mail ekte görmüş olduğunuz mail bilgi için gönderilmiştir."
.Attachments.Add "C:\deneme.txt"
.Send
End With
Set NewMail = Nothing
Set OutApp = Nothing
'End If
End Sub