Thanks.
1. press ALT+F11 to get to the VBA
2. select Tools->References and scroll down to check relevant version
of Microsoft Outlook Object Library, click OK to install it
3. press Insert->Module
4. paste this macro there
the macro loops all cells in F2:F1000 range looking for non-blanks,
creating e-mails w/o sending them (to send an e-mail automatically
uncheck the '.Send row). if you want to send an e-mail you will have
to click YES on alerts to confirm you really want to send it cause I
couldn't find the way to turn those alerts off
try the macro with your data and let me know if it's ok for you
for more you might look at www.outlookcode.com
Sub cus()
Dim outl As Outlook.Application
Dim remindd As Outlook.MailItem
Set outl = New Outlook.Application
Set remindd = Outlook.CreateItem(olMailItem)
For i = 2 To 1000
If Len(Cells(i, 6)) > 0 Then
If Cells(i, 6) = DateSerial(Year(Now()), Month(Now()),
Day(Now())) Then
With remindd
.Display
.To = Cells(i, 6).Offset(0, -1)
.CC = "m...@sth.com"
.Subject = "REMINDER: Today is the due date for " &
Cells(i, 1)
.Body = Cells(1, 1) & ": " & Cells(i, 1) & vbNewLine &
Cells(1, 2) & ": " & Cells(i, 2) & vbNewLine & Cells(1, 3) & ": " &
Cells(i, 3) & vbNewLine & Cells(1, 4) & ": " & Cells(i, 4)
'.Send
End With
End If
End If
Next i
Set remindd = Nothing
Set outl = Nothing
End Sub
> > Thanks.- Ukryj cytowany tekst -
>
> - Pokaż cytowany tekst -
Sub cus()
Dim outl As Outlook.Application
Dim remindd As Outlook.MailItem
Set outl = New Outlook.Application
For i = 2 To 1000
If Len(Cells(i, 6)) > 0 Then
If Cells(i, 6) = DateSerial(Year(Now()), Month(Now()),
Day(Now())) Then
Set remindd = Outlook.CreateItem(olMailItem)
With remindd
.Display
.To = Cells(i, 6).Offset(0, -1)
.CC = "m...@sth.com"
.Subject = "REMINDER: Today is the due date for " &
Cells(i, 1)
.Body = Cells(1, 1) & ": " & Cells(i, 1) & vbNewLine &
Cells(1, 2) & ": " & Cells(i, 2) & vbNewLine & Cells(1, 3) & ": " &
Cells(i, 3) & vbNewLine & Cells(1, 4) & ": " & Cells(i, 4)
.Send
End With
End If
End If
Next i
Set remindd = Nothing
Set outl = Nothing
End Sub
> > - Pokaż cytowany tekst -- Ukryj cytowany tekst -
Did I already apologize for all my questions ..........
"Jarek Kujawa" wrote:
> > .CC = "m...@sth..com"
> .
>
HIH
pls click YES if it helped
> > .- Ukryj cytowany tekst -
On 27 Kwi, 20:21, Andee39 <Ande...@discussions.microsoft.com> wrote:
> > .- Ukryj cytowany tekst -
"Jarek Kujawa" wrote:
> .
>