As requested.... here's the code.
thanks
Mill
Sub SendMessage()
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
'Dim rec As Recordset
'Dim rec1 As Recordset
' Create the Outlook session.
Set objOutlook = CreateObject("Outlook.Application")
' Create the message.
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
' Add the To recipient(s) to the message.
' (I will iterate through a recordset here to add email
' addresses from my Users Table)
Set objOutlookRecip = .Recipients.Add("email address here")
objOutlookRecip.Type = olTo
' Set the Subject, Body, and Importance of the message.
.Subject = "Note from HESA Tracker"
.Body = "For info:" & vbCrLf & vbCrLf
.Body = .Body & "Please note that . . . .etc."
.Body = .Body & vbCrLf & vbCrLf & "Thanks"
.Body = .Body & vbCrLf & vbCrLf
'********************************
'code to Add hyperlink...
.Body = .Body '& . . .
'********************************
' Resolve each Recipient's name.
For Each objOutlookRecip In .Recipients
objOutlookRecip.Resolve
If Not objOutlookRecip.Resolve Then
objOutlookMsg.Display
End If
Next
.Send
End With
Set objOutlookMsg = Nothing
Set objOutlook = Nothing
End Sub