hide the BCC on the send folder of the user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • killmasta93
    New Member
    • Nov 2015
    • 1

    hide the BCC on the send folder of the user

    Hi NeoPa, I have been googling to find out how I can hide the BCC on the send folder of the user. Im using 2013 outlook with this code

    Code:
    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
     Dim objRecip As Recipient
        Dim strMsg As String
        Dim res As Integer
        Dim strBcc As String
        On Error Resume Next
    
    ' #### USER OPTIONS ####
    ' address for Bcc -- must be SMTP address or resolvable
    ' to a name in the address book
    strBcc = "email@gmail.com"
    
    Set objRecip = Item.Recipients.Add(strBcc)
    objRecip.Type = olBCC
    If Not objRecip.Resolve Then
    strMsg = "Could not resolve the Bcc recipient. " & _
    "Do you want still to send the message?"
    res = MsgBox(strMsg, vbYesNo + vbDefaultButton1, _
    "Could Not Resolve Bcc Recipient")
    If res = vbNo Then
    Cancel = True
    End If
    End If
    
    Set objRecip = Nothing
    
          
    
    End Sub
    I saw your code that is different any way I could incorporate?

    Thank you
    Last edited by zmbd; Nov 28 '15, 08:53 PM. Reason: [z{please do not hijack threads}{splitting to new thread}]]
  • zmbd
    Recognized Expert Moderator Expert
    • Mar 2012
    • 5501

    #2
    This post was split from https://bytes.com/topic/access/answe...ng-outlook-vba

    killmasta93: Welcome to Bytes.com!
    We do ask that if you find a thread that almost addresses your question, but not quite, that you start a new thread and provide a link to the old thread for two reasons: it keeps the subject/topic cleaner and easier to follow and, more importantly, the new thread gets more attention... and your question deserves to have its own thread if for no other reason than just that fact!

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32653

      #3
      I see your post, but I'm not clear what you're trying to ask for help with.

      Comment

      Working...