+ Reply to Thread
Results 1 to 3 of 3

CC Email Recipient based on cell value (not null)

  1. #1
    Registered User
    Join Date
    02-01-2011
    Location
    Philadelphia, Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    57

    CC Email Recipient based on cell value (not null)

    trying to add a recipient as a "CC" based on whether or not the referenced cell is not null. for example if cell V2 is notnull, add the cell value as a CC (is always an email address) if it is null, do nothing. here is part of what i have so far, probably wording this incorrectly, the rest of the macro works.

    With OutMail
    .To = Range("S2")
    .CC = "[email protected]" & ";" & "[email protected]" & ";" & Range("U2")
    If Range("V2").Value >0 Then
    Range ("V2")
    Else
    .BCC = ""
    .Subject = Range("C2") & " " & Range("B2")
    .HTMLBody = "<p style='font-family:calibri;font-size:14.5'>" & strbody & "<br><br>" & "</P>" & Signature
    .display
    End With

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: CC Email Recipient based on cell value (not null)

    try this

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-01-2011
    Location
    Philadelphia, Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: CC Email Recipient based on cell value (not null)

    didnt even think to use a string, thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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