The_Steward
Board Regular
- Joined
- Nov 26, 2020
- Messages
- 63
- Office Version
- 365
- Platform
- Windows
Hi,
I keep getting Compile Syntax Error when trying to run the following Macro. Please Help!
I keep getting Compile Syntax Error when trying to run the following Macro. Please Help!
VBA Code:
Sub Give_Feedback()
Dim EmailApp As Object
Dim EmailItem3 As Object
Dim xStrBody As String
xStrBody = "Good Morning/Afternoon" & "<br>" & "<br>" _
& "My feedback is about:" & "<br>" & "<br>" & "Kind regards," & "<br>" _
& "Insert Name Here" & "<br>" & "<br>" & _
"Do You want to receive a free month for your subscription? Fill out our survey by clicking "<a href=""https://4screens.net/e/62b1566495602c01000005c6"">Here</a> "
On Error Resume Next
Set EmailApp = CreateObject("Outlook.Application")
Set EmailItem3 = EmailApp.CreateItem(0)
With EmailItem3
.To = ""
.Subject = "Feedback"
.HTMLBody = .HTMLBody & xStrBody
.Display
End With
Set EmailItem3 = Nothing
Set EmailApp = Nothing
End Sub