Outlook Yardım

Katılım
31 Temmuz 2009
Mesajlar
7
Excel Vers. ve Dili
2007 türkçe
Merhaba Arkadaşlar,

Outlooktan haftalık olarak belirli kişilere basit bir mail atıılması gerekmekte bunu otomatik hale getirebilirmiyiz acaba?
 

Emir Hüseyin Çoban

Destek Ekibi
Destek Ekibi
Katılım
11 Ağustos 2008
Mesajlar
5,891
Excel Vers. ve Dili
Office 2013 Tr - Win10 x64
. . .

Outlookta makrolar etkin olmalı.
Kodları outlookun ThisOutlookSession kısmına yapıştırın.
Kapatıp, tekrar açtığınızda etkin olacaktır.
Gönderim şartı, günlerden Pazartesi ise.

Kod:
Private Sub Application_Startup()
    On Error Resume Next
    Dim objOutlook As Object
    Dim objMail As Object
    If Format(Date, "dddd") Like "Pazartesi" Then
        Set objOutlook = CreateObject("Outlook.Application")
        Set objMail = objOutlook.CreateItem(0)
        With objMail
            .To = "mail@gmail.com"    ' mailin gideceği adres
[COLOR="Green"]'            .CC = ""
'            .BCC = ""[/COLOR]
            .Subject = "Konu"
            .Body = "Metin Gövdesi"
            .Save
[COLOR="Green"]'            .Display[/COLOR]
            .Send
        End With
    End If

    Set objMail = Nothing
    Set objOutlook = Nothing
End Sub
. . .
 
Katılım
31 Temmuz 2009
Mesajlar
7
Excel Vers. ve Dili
2007 türkçe
Hüseyin Bey bu şekilde yazdım ama olmadı bir sorun olabilirmi???


Private Sub Application_Startup()
On Error Resume Next
Dim objOutlook As Object
Dim objMail As Object
If Format(Date, "dddd") Like "Salı" Then
Set objOutlook = CreateObject("Outlook.Application")
Set objMail = objOutlook.CreateItem(0)
With objMail
.To = "XXXXX@XX.com"
.CC = "xx@xx.com"
.BCC = "xx@xx.com"
.Subject = "Konu"
.Body = "Metin Gövdesi"
.Save
.Display
.Send
End With
End If

Set objMail = Nothing
Set objOutlook = Nothing
End Sub
 

Emir Hüseyin Çoban

Destek Ekibi
Destek Ekibi
Katılım
11 Ağustos 2008
Mesajlar
5,891
Excel Vers. ve Dili
Office 2013 Tr - Win10 x64
. . .

Denedim çalışıyor. Kodları uyguladıktan sonra. Outlooktan çıkıp girmeniz gerekiyor.
Kod tetiklnemesi outlookun açılışıdır.

. . .
 
Üst