Hi!
I know this has been asked many times, but I couldn't find an answer that would work, at least not for me.
I'd like to send a report as pdf by email, using a Microsoft Outlook Template file (.oft). I have tried to use the OnClick event of a command button using DoCmd.SendObject and specifying the template file like this
It works and opens the email, but does not use the template file specified, just creates a blank new email with the report as an attachment.
I have also tried to use EMailDatabaseObject Macro, but the result is the same as with the above procedure.
However, I can open the template file with Outlook directly.
Does anyone know how to send an email using a saved Microsoft Outlook template?
I'm using Office 365.
I know this has been asked many times, but I couldn't find an answer that would work, at least not for me.
I'd like to send a report as pdf by email, using a Microsoft Outlook Template file (.oft). I have tried to use the OnClick event of a command button using DoCmd.SendObject and specifying the template file like this
Code:
DoCmd.SendObject acSendReport, "Report_Name", acFormatPDF, , , , "Test", , , "C:\Users\myName\AppData\Roaming\Microsoft\Templates\OutlookTemplate.oft"
I have also tried to use EMailDatabaseObject Macro, but the result is the same as with the above procedure.
However, I can open the template file with Outlook directly.
Does anyone know how to send an email using a saved Microsoft Outlook template?
I'm using Office 365.