0
我創建了一個VBA代碼,它自動發送一封電子郵件。在那封電子郵件中,我想要有一個鏈接到我上傳文件的網頁的超鏈接。將VBA代碼中的超鏈接放入自動電子郵件
我遇到的麻煩是將HTML超鏈接標籤放在VBA代碼中。
看看我的代碼:
msgbody = "Hi Everyone" & "<br> <br>" _
& "I have attached the excel file to this afternoon's Open Order Report above, as well as provided the link below:" & "<br> <br>" _
& "Please reach out if you have any more questions or concerns" & "<br>"
& "<a href= & "www.google.com">" & "link" </a>"
With objemail
.to = "[email protected]"
.cc = ""
.Subject = "test"
.htmlbody = msgbody
.display
End With
End Sub
看到這裏https://stackoverflow.com/questions/15224280/adding-超鏈接到excel-email-body-text – QHarr
[將超鏈接添加到excel電子郵件正文文本](https://stackoverflow.com/quest離子/ 15224280 /添加-超鏈接到Excel-電子郵件主體文本) – glennsl