Get excel 2010 to send auto e-mail
Closed
eturner66
Posts
1
Registration date
Tuesday 16 April 2013
Status
Member
Last seen
16 April 2013
-
16 Apr 2013 à 09:07
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 16 Apr 2013 à 11:24
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 16 Apr 2013 à 11:24
Related:
- Get excel 2010 to send auto e-mail
- Net send - Guide
- Microsoft picture manager 2010 - Download - Image viewing and management
- Microsoft office 2010 free download - Download - Office suites
- Excel mod apk for pc - Download - Spreadsheets
- Pdf and xps add in 2010 - Download - Other
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
16 Apr 2013 à 11:24
16 Apr 2013 à 11:24
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