dragonfang196
New Member
- Joined
- Jun 13, 2017
- Messages
- 2
Compile Error: Expected: Expression when creating Outlook and building email line by line
Trying to have a standard body/header, and insert line items based on excel values (If 1 include line A, if 2, include line B, etc.) ANY feedback or advice would be greatly appreciated.
aEmail.Body = "Hi " & Name & "," & vbNewLine & vbNewLine & _
"Standard Body" & vbNewLine & vbNewLine & _
"More Body" & _
"Please Review" & vbNewLine & vbNewLine & _
If Sheets("Mailing").Cells(Count, 30).Value = 1 Then
"Variable 1" & vbNewLine & _
"Variables Should be Correlated." & vbNewLine & vbNewLine & _
"Variables" & vbNewLine & _
"Current Quarter Prior Quarter Change " & vbNewLine & _
VariableCurrent & " " & VariablePrior& " " & VariableVariance & vbNewLine & vbNewLine & _
Trying to have a standard body/header, and insert line items based on excel values (If 1 include line A, if 2, include line B, etc.) ANY feedback or advice would be greatly appreciated.
aEmail.Body = "Hi " & Name & "," & vbNewLine & vbNewLine & _
"Standard Body" & vbNewLine & vbNewLine & _
"More Body" & _
"Please Review" & vbNewLine & vbNewLine & _
If Sheets("Mailing").Cells(Count, 30).Value = 1 Then
"Variable 1" & vbNewLine & _
"Variables Should be Correlated." & vbNewLine & vbNewLine & _
"Variables" & vbNewLine & _
"Current Quarter Prior Quarter Change " & vbNewLine & _
VariableCurrent & " " & VariablePrior& " " & VariableVariance & vbNewLine & vbNewLine & _