Get excel 2010 to send auto e-mail
Closed
eturner66
Posts
1
Registration date
Tuesday April 16, 2013
Status
Member
Last seen
April 16, 2013
-
Apr 16, 2013 at 09:07 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Apr 16, 2013 at 11:24 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Apr 16, 2013 at 11:24 AM
Related:
- Get excel 2010 to send auto e-mail
- Microsoft office 2010 free download - Download - Office suites
- E-mail unicode.org - Guide
- Net send windows 11 - Guide
- Grand theft auto v free download no verification for pc - Download - Action and adventure
- Windows live mail download - Download - Email
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Apr 16, 2013 at 11:24 AM
Apr 16, 2013 at 11:24 AM
Hi Eturner,
Did you write the code yourself?
A few things I noticed.
In the code:
On Error GoTo cleanup *you never specified cleanup
For Each EMS In Range("AP4:AP" & lastRow)
If EMS = "YES" Then
dateCell = EMS.Value *Which is YES.
dateCell1 = Cells(EMS.Row, "AP").Value *Same row, same column.
If dateCell <> dateCell1 Then *Comparing 2 values at the same location will always be the same.
Cells(EMS.Row, "AP").Value = "NO" *First you change value to NO.
EMS.ClearContents *And then you clear the cell of it's contents.
For Each EMS without Next EMS
You got 1x With and 2x End With.
You got 2x If and 1x End IF.
I don't have Outlook installed, so i can't test the functionality.
Hopefully I have helped a little.
Best regards,
Trowa
Did you write the code yourself?
A few things I noticed.
In the code:
On Error GoTo cleanup *you never specified cleanup
For Each EMS In Range("AP4:AP" & lastRow)
If EMS = "YES" Then
dateCell = EMS.Value *Which is YES.
dateCell1 = Cells(EMS.Row, "AP").Value *Same row, same column.
If dateCell <> dateCell1 Then *Comparing 2 values at the same location will always be the same.
Cells(EMS.Row, "AP").Value = "NO" *First you change value to NO.
EMS.ClearContents *And then you clear the cell of it's contents.
For Each EMS without Next EMS
You got 1x With and 2x End With.
You got 2x If and 1x End IF.
I don't have Outlook installed, so i can't test the functionality.
Hopefully I have helped a little.
Best regards,
Trowa