Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Add hyperlink to body of email thru Excel


Hi,

I have a macro that saves an excel file and sends it to variou
recipients. How would I add a hyperlink to the body of the emai
instead of the actual file itself?


ActiveWorkbook.SendMail Recipients:=Array("Body, Ann E"), _
Subject:="Test Hyperlink"


Thanks in advance

--
MAYDA
-----------------------------------------------------------------------
MAYDAY's Profile: http://www.excelforum.com/member.php...fo&userid=1354
View this thread: http://www.excelforum.com/showthread.php?threadid=38524

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Add hyperlink to body of email thru Excel

Try something like:

With usrAPinvoices
If usrAPinvoices.optEmailRpts = True Then
Application.DisplayAlerts = False
'mailing routine
Workbooks(ExpFileName).Activate
mMsg = "This Invoice file created on " & Application.Text(Now(),
"dd mmm yyyy HH:mm") _
& ". http://xl.barasch.com"
If ActiveWorkbook.HasRoutingSlip = False Then
ActiveWorkbook.HasRoutingSlip = True
End If
With ActiveWorkbook.RoutingSlip
.Recipients = BranchAdmin
.Subject = Branch & " AP Invoices"
.Message = mMsg
.Delivery = xlAllAtOnce
.ReturnWhenDone = False
.TrackStatus = True
End With
Application.DisplayAlerts = True
Else
'don't mail
End If
End With



"MAYDAY" wrote:


Hi,

I have a macro that saves an excel file and sends it to various
recipients. How would I add a hyperlink to the body of the email
instead of the actual file itself?


ActiveWorkbook.SendMail Recipients:=Array("Body, Ann E"), _
Subject:="Test Hyperlink"


Thanks in advance.


--
MAYDAY
------------------------------------------------------------------------
MAYDAY's Profile: http://www.excelforum.com/member.php...o&userid=13548
View this thread: http://www.excelforum.com/showthread...hreadid=385245


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Add hyperlink to body of email thru Excel


Hello

I hope this help you


Sub CreationMailEtLienHypertexte()
Dim OlApp As New Outlook.Application
Dim OlItem As Outlook.MailItem

Set OlItem = OlApp.CreateItem(olMailItem)

With OlItem
..To = "
..Subject = "Le titre du message"
..HTMLBody = "<BODY<A href='" & ThisWorkbook.FullName & _
"'The WorkBook</A</BODY" 'adapt the link
..Display
..Save
..send
End With

Set OlItem = Nothing
Set OlApp = Nothing
End Sub



Regards ,
michel


--
michelxld
------------------------------------------------------------------------
michelxld's Profile: http://www.excelforum.com/member.php...o&userid=17367
View this thread: http://www.excelforum.com/showthread...hreadid=385245

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Add hyperlink to body of email thru Excel

Hi

Try this if you use Outlook (see macro example on this page)
http://www.rondebruin.nl/sendmail.htm

Use

..Body = "file://Yourcomputer/YourFolder/Week2.xls"
If there are spaces use %20
..Body = "file://Yourcomputer/YourFolder/Week%202.xls"

Example for a file on a website
..Body = "http://www.rondebruin.nl/files/EasyFilter.zip"


--
Regards Ron de Bruin
http://www.rondebruin.nl


"MAYDAY" wrote in message
...

Hi,

I have a macro that saves an excel file and sends it to various
recipients. How would I add a hyperlink to the body of the email
instead of the actual file itself?


ActiveWorkbook.SendMail Recipients:=Array("Body, Ann E"), _
Subject:="Test Hyperlink"


Thanks in advance.


--
MAYDAY
------------------------------------------------------------------------
MAYDAY's Profile: http://www.excelforum.com/member.php...o&userid=13548
View this thread: http://www.excelforum.com/showthread...hreadid=385245



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
Hyperlink in body of VBA email Chadersmith Excel Discussion (Misc queries) 1 September 17th 09 07:46 PM
Excel 2003 body of email trish r. Excel Discussion (Misc queries) 2 February 14th 07 04:05 PM
body of email disappears when I send an email from Excel ~A Excel Discussion (Misc queries) 0 February 25th 05 10:55 PM
Excel as Web Page in body of Email Tod Excel Programming 1 August 11th 04 03:58 PM
Excel within the body of an email McDougle Excel Programming 1 January 20th 04 09:56 PM


All times are GMT +1. The time now is 05:22 PM.

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

About Us

"It's about Microsoft Excel"