Mvalue = MonthName(5, True)
fileL = "\bobby\outside\"
myFile = fileL & Mvalue & Right(Year(Date), 2) & "\Goodbye - " & myfdate & ".xls"
Set omail = CreateItem(olMailItem)
With omail
.Subject = "Hello"
.BodyFormat = olFormatHTML
.HTMLBody = myFile
如何将.HTMLBody = myFile
转换为将要发送的电子邮件中的链接?
答案 0 :(得分:0)
您需要一个HTML链接:
.HTMLBody = "<a href='" & myFile & "'>Linky</a>"