Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default hyperlink in email

Helllo, I am using the code below to send email from
Excel. I can't figure out how to inlcude a hyperlink.
TIA...

Public Sub Send_Email()
Dim olApp As Outlook.Application
Dim olNs As Outlook.NameSpace
Dim olMail As Outlook.MailItem
Dim i As Byte
Dim emailBody As String

Set olApp = CreateObject("Outlook.Application")
Set olNs = olApp.GetNamespace("MAPI")
olNs.Logon
Set olMail = olApp.CreateItem(olMailItem)

With olMail
For i = 1 To Range("Email_List1").Rows.Count
.Recipients.Add Range("Email_List1")(i)
Next i
.Subject = ActiveWorkbook.Name
'
'Build email body
'
If (pubNewReqs = True) Then
emailBody = pubNewReqCnt - 1 & " Regulatory
Requirements have been added for " & Range
("Regs_For").Value & "."
Else
emailBody = Range("Regs_For").Value
& "Regulatory Requirements have been updated."
End If
.Body = emailBody

.Links.Add = "Network or URL path to file"

.OriginatorDeliveryReportRequested = False
.ReadReceiptRequested = False
.Recipients.ResolveAll
.Send
End With

Set olNs = Nothing
Set olApp = Nothing
Set olMail = Nothing
End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email hyperlink Dave Peterson Excel Worksheet Functions 0 August 1st 08 05:56 PM
email hyperlink Lidia Excel Discussion (Misc queries) 0 April 6th 08 04:59 PM
How to Hyperlink in an email? pokdbz Excel Discussion (Misc queries) 2 November 7th 07 04:35 PM
Email via hyperlink Paul Dye Excel Discussion (Misc queries) 0 November 7th 06 10:27 PM
email using hyperlink crazylikeanut Excel Worksheet Functions 1 November 30th 05 07:23 PM


All times are GMT +1. The time now is 06:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"