melodramatic
Board Regular
- Joined
- Apr 28, 2003
- Messages
- 187
- Office Version
- 365
- Platform
- Windows
I'm adding information to the email body of emails that I need to send out, and somewhere, I've obviously butchered it. I'm hoping that someone might be able to tell me what I screwed up here.
What I'm trying to do is add in two hyperlinks, directing the recipient to both a folder and a file. I'm also adding italics to one line, and don't know if maybe that caused my error.
Hoping you can help!
What I'm trying to do is add in two hyperlinks, directing the recipient to both a folder and a file. I'm also adding italics to one line, and don't know if maybe that caused my error.
Hoping you can help!
Code:
If Range("D" & WorkLine) = "PQ" Or Range("D" & WorkLine) = "CH" Or Range("D" & WorkLine) = "BG" Then
If DCamount >= 100000 Then
emailBody = "The attached " & Range("H" & WorkLine) & " is being submitted to you, as its value is " & Format(Range("M" & WorkLine), "$#,###") & "." & vbNewLine & vbNewLine
End If
End If
'THE TOP PORTION WORKS FINE FOR ME. IT'S THIS BELOW CODING OF emailBody that gives me the Compile Error | Syntax error
emailBody = emailBody & "Document control submittal: " & vbNewLine & _
" " & DCN & vbNewLine & " | " & Range("G" & WorkLine) & " | " & Range("I" & WorkLine) & vbNewLine & _
" " & <i>"submitted by " & Environ("username")</i> & vbNewLine & vbNewLine & _
"You may view project-specific QA documentation at the following locations:" & vbNewLine & vbNewLine & _
"<a href=" & QAfolder & "</a>" & vbNewLine & _ 'QAfolder shows path\
"<a href=" & QAfolder & "Document Control\" & Range("X" & WorkLine) & "</a>" 'Range "X" gives complete filename, including extension