Hi Guys,
I would like to use form to send an email with table on the email body.
May i know how to include table into the email body?
For example:
Hi All,
Please review 123 and feedback to supplier for repeating reject.
Part |
Rej Qty |
Supplier |
123 |
12 |
Apple |
Code:
Public Function Email3()Dim oApp As Outlook.Application
Dim oMail As MailItem
Set oApp = CreateObject("Outlook.application")
Set oMail = oApp.CreateItem(olMailItem)
oMail.Subject = "[eIncoming] - Failed 100% Inspection on " & PartNumber & ""
oMail.Body = "Hi All," & vbCrLf & vbCrLf & "Please review " & PartNumber & " and feedback to supplier for repeating reject." & vbCrLf & vbCrLf & "Regards, " & vbCrLf & "abc"
oMail.To = "abc@abc.com"
oMail.Send
Set oMail = Nothing
Set oApp = Nothing