开发者

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

开发者 https://www.devze.com 2022-12-29 22:14 出处:网络
Mvalue = MonthName(5, True) fileL = \"\\bobby\\outside\\\" myFile = fileL & Mvalue & Right(Year(Date), 2) & \"\\Goodbye - \" & myfdate & \".xls\"
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

精彩评论

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

关注公众号