Moderatori: Anthony47, Flash30005
If InStr(1, Cells(I, "AP").Value, "@", vbTextCompare) > 0 And _
Cells(I, "A").Value <> Cells(I, "B").Value Or _
Cells(I, "C").Value + Range("D1").Value <= Now Then
Cells(I, 2) = Cells(I, 1)
Cells(I, 3) = Int(Now)
Set OutApp = CreateObject("Outlook.Application")
For i = 14 To 100
If Cells(i, "AP").Value = "" Then Exit For ' <<< Se la cella Apxx è vuota fine invio email
'
'If InStr(1, Cells(i, "AP").Value, "@", vbTextCompare) > 0 And Cells(i, "AM").Value<> Cells(i, "AT") And (Now - Cells(i, "AU").Value) > AU12 Then
' << condizione di invio email e scrittura :se il nome di ( AM ) è diverso da ( AT ) oppure se la data di ( AU ) è superiore di Ngg di ( AU12 )
If InStr(1, Cells(i, "AP").Value, "@", vbTextCompare) > 0 And _
Cells(i, "AM").Value <> Cells(i, "AT").Value Or _
Cells(i, "AU").Value + Range("AU12").Value <= Now Then
Cells(i, 2) = Cells(i, 1)
Cells(i, 3) = Int(Now)
Cells(i, "AT") = Cells(i, "AM").Value '& ("- ") & Cells(i, "AN") '<<< Nome e Cognome del cliente
Cells(i, "AU") = Date
BDT = "Caro/a " & Cells(i, "AM").Value & (", ") & Cells(i, "AN") & (", ") & ("Siamo lieti comunicarti che hai raggiunto ") & (", ") & Cells(i, "AO") & (" Punti ") & (", ") & ("raggiungendo cosi il premio N° ") & Cells(i, "AR") & (", pari ad €uro ") & Cells(i, "AS") 'compilazione di un testo standard di accompagnamento
BDT = BDT & Sheets("Hompage").Range("az4") '<<<<<<<Testo in AZ4
BDT = BDT & vbCrLf & " " & vbCrLf ' <<<<<Saluti
Torna a Applicazioni Office Windows
Inserire add.in nella barra di avvio veloce in excel 2003 Autore: Ricky0185 |
Forum: Applicazioni Office Windows Risposte: 4 |
Excel: problema con date se devo unirle a testi Autore: valle1975 |
Forum: Applicazioni Office Windows Risposte: 4 |
confrontare e evidenziare 2 fogli excel Autore: niccia |
Forum: Applicazioni Office Windows Risposte: 7 |
[EXCEL] controllo corrispondenza tra valori con un vincolo Autore: sbs |
Forum: Applicazioni Office Windows Risposte: 9 |
Visitano il forum: Nessuno e 40 ospiti