+ Reply to Thread
Results 1 to 2 of 2

Email Links from Excel

Hybrid View

Alltmor Email Links from Excel 08-17-2007, 04:50 PM
bo123 I am from holland is this for... 04-07-2008, 05:40 PM
  1. #1
    Registered User
    Join Date
    08-17-2007
    Posts
    11

    Email Links from Excel

    Here's a brief run down on what I'm trying to achieve: -

    I want to create a spreadsheet which will include a column with email addresses in it.

    Here's my problem.......

    I want users to be able to click on an email address (like a hyperlink) and by doing this open their mail client (in this case Microsoft Outlook) and send an email. I would like the mail client to load a specific template just by clicking on the link from Excel. I'm not sure if this is possible, but there doesn't seem to be many things you can't do on Excel.

    Anyone that could offer any help or guidance would be doing me a huge favour.

    Thanks.

  2. #2
    Registered User
    Join Date
    04-03-2008
    Posts
    3

    I am from holland is this for you

    Sub Mail_SheetsArray()
    
    Sheets("offerte").Select
      Dim OutApp As Object
       Dim OutMail As Object
        Dim strbody As String
        Dim sendmailto As String
        Dim AddPicture As String
        
        
      
    
    
        
        sendmailto = Worksheets("offerte").Range("j10")
        
        strname0 = ""
        strname0 = strname0 & ActiveSheet.Range("a1")
        strname0 = strname0 & " - " & ActiveSheet.Range("a2")
        strname0 = strname0 & " - " & ActiveSheet.Range("a3")
       
        Set OutApp = CreateObject("Outlook.Application")
        OutApp.Session.Logon
        Set OutMail = OutApp.CreateItem(0)
     
        AddPicture = "C:\Documents and Settings\Minne Feitsma\Mijn documenten\Mijn afbeeldingen\picture1.jpg"
     
          strbody = "Beste " & ActiveSheet.Range("J11") & ", " & vbNewLine & vbNewLine & _
                   "Bedankt voor de offerte aanvraag " & vbNewLine & vbNewLine & _
                   "oplage " & ActiveSheet.Range("B28") & " " & ActiveSheet.Range("B38") & vbNewLine & _
                   ActiveSheet.Range("B20") & vbNewLine & _
                   ActiveSheet.Range("B21") & vbNewLine & _
                   ActiveSheet.Range("B22") & vbNewLine & _
                   ActiveSheet.Range("B23") & vbNewLine & _
                   vbNewLine & "Bedrukking " & ActiveSheet.Range("B30") & _
                   vbNewLine & "Bedrukkings oppervlak" & " " & ActiveSheet.Range("B32") & "   " & ActiveSheet.Range("B33") & vbNewLine & _
                   "Drukformaat " & ActiveSheet.Range("B36") & " cm" & vbNewLine & _
                  "Offerte bedrag is exclusief BTW en Transport" & " " & ActiveSheet.Range("B40") & " euro" & vbNewLine & vbNewLine & _
                   "Hieronder staan punten waar u rekening mee moet houden" & vbNewLine & _
                  vbNewLine & ActiveSheet.Range("B49") & _
                  vbNewLine & ActiveSheet.Range("B50") & _
                  vbNewLine & ActiveSheet.Range("B51") & _
                  vbNewLine & ActiveSheet.Range("B52") & _
                  vbNewLine & ActiveSheet.Range("B53") & _
                  vbNewLine & ActiveSheet.Range("B54") & _
                  vbNewLine & ActiveSheet.Range("B55") & _
                  vbNewLine & ActiveSheet.Range("B56") & _
                  vbNewLine & ActiveSheet.Range("B57") & _
                  vbNewLine & ActiveSheet.Range("B58") & _
                  strname0 & vbNewLine & vbNewLine & _
                  "Groeten van Minne Feitsma." & vbNewLine & _
                  "tel : 0228-319566"
         
    
       
        On Error Resume Next
        With OutMail
            .To = sendmailto
            .CC = ""
            .BCC = ActiveSheet.Row("A1:A3")
            .Subject = "Offerte van GM Zeefdruk." & " Offertenummer " & ActiveSheet.Range("B16")
            .Body = strbody
            .Send   'or use .Display
            '.Display
        End With
        
         
         
         
        On Error GoTo 0
     
        Set OutMail = Nothing
        Set OutApp = Nothing
    End Sub
    Last edited by VBA Noob; 04-07-2008 at 05:45 PM.

+ Reply to Thread

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