Results 1 to 4 of 4

Sending email from Excel

Threaded View

JonathanMoore Sending email from Excel 08-16-2011, 06:01 AM
jaslake Re: Sending email from Excel 08-16-2011, 03:45 PM
JonathanMoore Re: Sending email from Excel 08-17-2011, 04:21 AM
jaslake Re: Sending email from Excel 08-17-2011, 08:25 PM
  1. #1
    Registered User
    Join Date
    08-08-2011
    Location
    Warwick
    MS-Off Ver
    MS365
    Posts
    53

    Sending email from Excel

    Hello all,

    I've been googling this issue for a while, and i'm having little/ no luck!

    I've got a spreadsheet with a button that saves then sends a copy of the spreadsheet to a specific email address. My client has asked whether it is possible to send a copy of this email to the Sender as well.

    I know its possible to include more email addresses (in the "CC" box) but I don't know how to automatically include the sender into the email

    Any help would be greatly appreciated!

    here is my current code:

    
    Private Sub CMD_Save_Click()
    
    Dim OutApp As Object
    Dim OutMail As Object
    
    Set OutApp = CreateObject("Outlook.Application")
    OutApp.Session.Logon
    Set OutMail = OutApp.CreateItem(0)
    
    On Error Resume Next
    With OutMail
    .To = "XXXX@XXXXX.com"
    .CC = ""  - here is where I want to auto include the email address of the sender
    .BCC = ""
    .Subject = "Change to Visitor Booking Form"
    .Body = "A change has been made to the Visitor Booking form. Please review."
    .Attachments.Add ActiveWorkbook.FullName
    .Send
    End With
    
    On Error GoTo 0
    
    Set OutMail = Nothing
    Set OutApp = Nothing
    
        
    End Sub

    Many thanks in advance!

    - Jon
    Last edited by JonathanMoore; 08-17-2011 at 04:18 AM.

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