Patriot2879
Well-known Member
- Joined
- Feb 1, 2018
- Messages
- 1,259
- Office Version
- 2010
- Platform
- Windows
Hi Please can you help on the code below, this is in my command button but the email body is all in red, please can you help?
Code:
Private Sub CommandButton3_Click()
Dim aOutlook As Object
Dim aEmail As Object
Dim rngeAddresses As Range, rngeCell As Range, strRecipients As String
Set aOutlook = CreateObject("Outlook.Application")
Set aEmail = aOutlook.CreateItem(0)
aEmail.htmlBody = "Hi There," & Chr(10) & vbCrLf &_
"<p>MPAN / MPRN: " & Chr(10) & _
"</p><p>Post Code: " & Chr(10) & _
"</p><p><b>Comments: </b> " & Chr(10) & _
"<p>Job Type: " & & Chr(10) & vbCrLf & _
"<p></p>Many thanks " & Chr(10) &
aEmail.Recipients.Add (Worksheets("Email Links").Range("A2").Value)
aEmail.CC = ""
aEmail.BCC = ""
aEmail.Subject = "AMR - 2 Man Request"
aEmail.Display
End Sub