开发者

How to an Excel file into a link to send in email

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

How do I make the .HTMLBody = myFile, into a link within the email that will be sent out?


You need an html link:

.HTMLBody = "<a href='" & myFile & "'>Linky</a>"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜