Hi there,
I am trying to write a code and I actually need help to conclude it.
I am using a code in order to program my outlook to send a recurring e-mail. The problem is: we have a plug-in installed in our outlook that, before sending the e-mail, pops-up window that we need to press "OK".
I'm not succeeding in the code to automate this last part (to automatically press ok). The plugin is called WorkSite and works like file manager and the mesage pretty much asks if we want to store the e-mail on a specific folder.
The code I have written is this:
Thank you very much!
I am trying to write a code and I actually need help to conclude it.
I am using a code in order to program my outlook to send a recurring e-mail. The problem is: we have a plug-in installed in our outlook that, before sending the e-mail, pops-up window that we need to press "OK".
I'm not succeeding in the code to automate this last part (to automatically press ok). The plugin is called WorkSite and works like file manager and the mesage pretty much asks if we want to store the e-mail on a specific folder.
The code I have written is this:
Private Sub Application_Reminder(ByVal Item As Object)
Dim objPeriodicalMail As MailItem
If Item.Class = olTask Then
If InStr(LCase(Item.Subject), "teste") Then
Set objPeriodicalMail = Outlook.Application.CreateItem(olMailItem)
'Change the following email information as per your actual needs
With objPeriodicalMail
.Subject = "text"
.To = "renan@grt.com"
.HTMLBody = "<HTML>******>text</HTML></BODY>"
.Importance = olImportanceHigh
.ReadReceiptRequested = True
.Send
End With
End If
End If
End Sub
Thank you very much!
Last edited: