我正在尝试从 excel 生成电子邮件,但想向电子邮件正文添加超链接。我希望超链接显示为文本而不是文件路径。
我该怎么做呢?
我正在使用下面的代码。
strBody = "Hello " & Range("QuoteFirstName").Value & "," & _
vbNewLine & _
vbNewLine & _
"It was good to speak with you earlier today/yesterday." & _
vbNewLine & _
vbNewLine & _
"[Any personal message]" & _
vbNewLine & _
vbNewLine
On Error Resume Next
With OutMail
.To = StrTo
.CC = ""
.BCC = ""
.Subject = StrSubject
.Body = StrBody
.Attachments.Add FileNamePDF
If Send = True Then
.Send
Else
.Display
End If
End With
我可以使用.Hyperlinks.Add
吗?