Hi all
I am trying to set up an automatic email that requires multiple lines and paragraphs.
Can someone please help me, the coding I have so far only sustains one continuous line.
Thank you for your help
I am trying to set up an automatic email that requires multiple lines and paragraphs.
Can someone please help me, the coding I have so far only sustains one continuous line.
Code:
Private Sub Command0_Click()
Dim Email As String
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.MailItem
Email = "name@company.com"
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.To = Email
.Subject = "Test email document"
.Body = "This is just a test"
.Send
End With
Set objEmail = Nothing
End Sub
Comment