Имам проблеми с вграждането на хипервръзка към текст като този.
Изпълнявам макроса от Excel, който създава обект на Outlook и се повтаря за всички стойности надолу в колона c.
Следното не работи, така че как да вградя връзка тук?
.Body = "Click Here <https://www.google.com/>
Код по-долу
Dim OutApp As Object
Dim OutMail As Object
Dim cell As Range
Application.ScreenUpdating = False
Set OutApp = CreateObject("Outlook.Application")
On Error GoTo cleanup
For Each cell In Columns("B").Cells.SpecialCells(xlCellTypeConstants)
If cell.Value Like "?*@?*.?*" And _
LCase(Cells(cell.Row, "C").Value) = "yes" Then
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.SentOnBehalfOfName = "[email protected]"
.to = cell.Value
.Subject = "Subject" & Cells(cell.Row, "D").Value
.Body = "Click Here <https://www.google.com/>"
strLocation = "C:\Users\hahayouthought"
.Attachments.Add (strLocation)
.Display
End With
On Error GoTo 0
Set OutMail = Nothing
End If
Next cell
.Body
? - person urdearboy   schedule 09.01.2019