Hello geniuses. I am trying to use a variable in an HTML Link in the body of an email. Clicking the link just try's to open a webpage by that name and doesn't grab the variable's value. This sheet is a template that will be saved many times in many locations so I won't be able to set the specific link in the HTML code itself. Any thoughts? The Red is obviously the problem. I just don't know the solution. Curly brackets were put in to keep the code from compiling.
Many thanks in advance for any help.
Ken</a_></a_href=
Code:
Sub getpath()
Dim olApp As Outlook.Application, olEmail As Outlook.MailItem
Dim wbSummary As String
Set olApp = New Outlook.Application
Set olEmail = olApp.CreateItem(olMailItem)
wbSummary = ThisWorkbook.FullName
With olEmail
.BodyFormat = olFormatHTML
.Display
.Subject = "Click This Link for Update"
.HTMLBody = "Click {a href=[B][COLOR=#ff0000]wbSummary[/COLOR][/B]>here{/a} to go to: " & wbSummary<a_href=<font color="#ff0000"><a_ href="wbSummary">
End With
End Sub
Many thanks in advance for any help.
Ken</a_></a_href=
Last edited: