Results 1 to 8 of 8

Hyperlinking part of an email body

Threaded View

Macdave_19 Hyperlinking part of an email... 09-16-2010, 06:00 AM
DonkeyOte Re: Hyperlinking part of an... 09-16-2010, 07:22 AM
Macdave_19 Re: Hyperlinking part of an... 09-16-2010, 07:59 AM
romperstomper Re: Hyperlinking part of an... 09-16-2010, 08:00 AM
Macdave_19 Re: Hyperlinking part of an... 09-16-2010, 08:04 AM
DonkeyOte Re: Hyperlinking part of an... 09-16-2010, 08:37 AM
romperstomper Re: Hyperlinking part of an... 09-16-2010, 08:41 AM
Macdave_19 Re: Hyperlinking part of an... 09-16-2010, 08:44 AM
  1. #1
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Question Hyperlinking part of an email body

    Hi All,

    I'm am creating an auto e-mail that is send from excel but i need to hyperlink part of the email body

    Here's what i have so far:

    Public Sub SendEmailToDave(ID As String, Action As String)
    Dim MailSelection As Object
    Dim Subject As String
    Dim EmailAddress As String
    Dim StrKID As String
    Dim ToDo As String
    Dim Href As String
    
    Href = "http://corshwdsslv02.corp.pg.eon.net/Arnie/ViewReport.aspx?reportid=" & ID
    
    StrKID = Application.UserName
    
    Select Case Action
        Case 1
            ToDo = "Open"
        Case 2
            ToDo = "Close"
    End Select
        
        Set OutLookApp = CreateObject("Outlook.Application")
         
                Subject = "Quiggers - Actions Required"
                EmailAddress = StrKID
                 
                Set MailSelection = OutLookApp.CreateItem(0)
                With MailSelection
                    .to = EmailAddress
                    .Subject = Subject
                    .Body = " Please could you " & ToDo & " & ARNIE Report " & ID & vbCr & vbCr _
                          & Href & vbCr & vbCr _
                          & " Thank you "
                    .display
                    SendKeys "%{S}", True
                End With
    End Sub
    Where i add the "Href" it does show the lilnk but instead of the entire link i just want it to be the "ID" (A 5 digit number so use 12345 as an example"

    i hop that's clear people and any help is greatly appreciated.

    Cheers
    Last edited by Macdave_19; 09-16-2010 at 08:43 AM.
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1