Come impedire l'invio di allegati a destinatari CC e BCC durante la composizione della posta elettronica in Outlook?
Come tutti sappiamo, tutti i destinatari nei campi "A", "CC" o "BCC" riceveranno gli allegati quando inviano e-mail con allegati. Tuttavia, alcuni utenti desiderano inviare gli allegati solo ai destinatari "A", mentre i destinatari "CC" e "BCC" ricevono il messaggio senza gli allegati. Come hai potuto risolvere questo lavoro in Outlook?
Impedisci l'invio di allegati a destinatari CC e BCC durante la composizione di e-mail con codice VBA
In effetti, Outlook non offre un'opzione per gestire questa attività, ma il seguente codice VBA può farti un favore, per favore fai come segue:
1. Tieni premuto il ALT + F11 chiavi per aprire il Microsoft Visual Basic, Applications Edition finestra.
2. Nel Microsoft Visual Basic, Applications Edition finestra, fare doppio clic Questa sessione di Outlook dal Progetto1 (VbaProject.OTM) riquadro per aprire la modalità, quindi copia e incolla il codice seguente nel modulo vuoto.
Codice VBA: impedisce l'invio di allegati a destinatari CC e BCC:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim xMailItem As Outlook.MailItem
Dim xNewMail As Outlook.MailItem
If Item.Class <> olMail Then Exit Sub
Set xMailItem = Item
Set xNewMail = Outlook.Application.CreateItem(olMailItem)
With xNewMail
.CC = xMailItem.CC
.BCC = xMailItem.BCC
.Subject = xMailItem.Subject
.HTMLBody = xMailItem.HTMLBody
.Send
End With
xMailItem.CC = ""
xMailItem.BCC = ""
End Sub

3. Then save and close the code window.
4. From now on, when sending an email with attachments, only the recipients in To field can receive the attachments, and the recipients in CC and BCC can only get the message without attachments.
Kutools for Outlook - Brings 100 Advanced Features to Outlook, and Make Work Much Easier!
- Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by custom; Auto Reply without exchange server, and more automatic features...
- BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
- Reply (All) With All Attachments in the mail conversation; Reply Many Emails in seconds; Auto Add Greeting when reply; Add Date into subject...
- Attachment Tools: Manage All Attachments in All Mails, Auto Detach, Compress All, Rename All, Save All... Quick Report, Count Selected Mails...
- Powerful Junk Emails by custom; Remove Duplicate Mails and Contacts... Enable you to do smarter, faster and better in Outlook.
