Hi everyone, I am using the following script to send an email (works good) but want to add a hyperlink to the email. Id prefer if possible to show text as the hyper link. i.e. "Link" (not showing the path)
Thanks in advacne for any direction or help
sd
Thanks in advacne for any direction or help
sd
Code:
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String
Dim strUserName As String
strUserName = Sheets("RDashboard").Range("AL1")
Set rngSearch = Sheets("Pass").Range("A:A")
Set rowFound = rngSearch.Find(What:=strUserName, LookIn:=xlValues, LookAt:=xlWhole)
UserNames = Sheets("Pass").Range("C" & rowFound.Row)
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
strbody = "Hello" & vbNewLine & vbNewLine & _
"This is an automated response to inform the next lever user " & strUserName & " has been posted." & vbNewLine & vbNewLine & _
"NEXT LEVEL USERS CLICK ON THE FOLLOWING LINK TO OPEN THE LAW WORKBOOK" & _
****IM ASSUMING THE LINK SYNTAX GOES HERE****
"Thank you" & vbNewLine & _
On Error Resume Next
With OutMail
.To = UserNames
.CC = ""
.BCC = ""
.Subject = strUserName & " has posted"
.Body = strbody
'You can add a file like this
'.Attachments.Add ("C:\test.txt")
.Display 'or use .Display or use .Send
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing