Share via

HTML instead Plain Text

Anonymous
2012-10-10T15:19:50+00:00

‘DoCmd.SendObject acSendReport …' is working fine in my Access VBA-code to create a new Email in my Outlook 2010, but the format is ‘Plain Text’. I rather would prefer ‘HTML’-format instead of ‘Plain Text’. Is there a possibility (parameter?) to do it in VBA?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2012-10-10T15:42:01+00:00

    Yes, but you will have to use Automation. I have an example of sending an email with or without multiple attachments. Change the line:

    outItem.Body = strMsg

    to:

    outItem.HTMLBody = strMsg

    That forces the HTML format.

    Oh, yeah...The url is http://www.thatlldoit.com/Pages/codesamples.aspx

    Was this answer helpful?

    0 comments No comments