Results 1 to 6 of 6

Adding an additional CC to automated email from Excel

Threaded View

PAULIANDAVIES Adding an additional CC to... 09-19-2012, 09:45 AM
K m Re: Adding an additional CC... 09-19-2012, 09:48 AM
arlu1201 Re: Adding an additional CC... 09-19-2012, 09:50 AM
Bill4786 Re: Adding an additional CC... 09-19-2012, 10:41 AM
PAULIANDAVIES Re: Adding an additional CC... 09-19-2012, 11:04 AM
Bill4786 Re: Adding an additional CC... 09-19-2012, 11:13 AM
  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    manchester
    MS-Off Ver
    Excel 2010
    Posts
    2

    Adding an additional CC to automated email from Excel

    Hi,

    I need to add a few more people to my distribution list of an automated report that is issued each morning, how do i add this in ? Help.... the code i currently have is below

    Dim rng As Range
        Dim OutApp As Object
        Dim OutMail As Object
     
        With Application
            .EnableEvents = False
            .ScreenUpdating = False
        End With
     
        Set rng = Nothing
        On Error Resume Next
        Set rng = Selection.SpecialCells(xlCellTypeVisible)
        On Error GoTo 0
     
        If rng Is Nothing Then
            MsgBox "The selection is not a range or the sheet is protected" & _
                   vbNewLine & "please correct and try again.", vbOKOnly
            Exit Sub
        End If
     
        Set OutApp = CreateObject("Outlook.Application")
        Set OutMail = OutApp.CreateItem(0)
     
        On Error Resume Next
        With OutMail
            .To = "X"
            .CC = "X"
          .BCC = "X"
            .Subject = "Daily KPI - December Drop Off's Predictor (Full month)"
            .HTMLBody = RangetoHTML(rng)
            .Display
            .Send
        End With
        On Error GoTo 0
     
        With Application
            .EnableEvents = True
            .ScreenUpdating = True
        End With
        
        Set OutMail = Nothing
        Set OutApp = Nothing

    Thanks in advance for any help

    Paul
    Last edited by arlu1201; 09-19-2012 at 09:49 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