I need a thread to send an email out with in 30 days of a date to remind of a due date using macros. Need help please. I have the email set up just need the 30 days
This is what I have and it works, I just need to add 30 day string. Is this possible???
private Sub CommandButton7_Click()
Dim outApp As Object
Dim outMail As Object
Dim Strbody As String
Set outApp = CreateObject("outlook.Application")
Set outMail = outApp.CreateItem(0)
Strbody = "Email."
On Error Resume Next
With outMail
.to = "@@@@"
.Subject = "Email "
.Body = Strbody
.send
End With
On Error GoTo 0
Set outMail = Nothing
Set outApp = Nothing
End Sub
This is what I have and it works, I just need to add 30 day string. Is this possible???
private Sub CommandButton7_Click()
Dim outApp As Object
Dim outMail As Object
Dim Strbody As String
Set outApp = CreateObject("outlook.Application")
Set outMail = outApp.CreateItem(0)
Strbody = "Email."
On Error Resume Next
With outMail
.to = "@@@@"
.Subject = "Email "
.Body = Strbody
.send
End With
On Error GoTo 0
Set outMail = Nothing
Set outApp = Nothing
End Sub