Note: The other languages of the website are Google-translated. Back to English

Conas cosc ​​a chur ar cheangaltáin a sheoladh chuig faighteoirí CC agus BCC agus iad ag cumadh ríomhphoist in Outlook?

Mar is eol dúinn uile, gheobhaidh gach faighteoir i réimsí “To”, “CC” nó “BCC” na ceangaltáin agus iad ag seoladh ríomhphoist le ceangaltáin. Mar sin féin, ba mhaith le roinnt úsáideoirí na ceangaltáin a sheoladh chuig na faighteoirí “Chuig” amháin, agus na faighteoirí “CC” agus “BCC” ag fáil na teachtaireachta gan na ceangaltáin. Conas a d’fhéadfá an post seo a réiteach in Outlook?

Cosc ar cheangaltáin a sheoladh chuig faighteoirí CC agus BCC agus iad ag cumadh ríomhphoist le cód VBA


Cosc ar cheangaltáin a sheoladh chuig faighteoirí CC agus BCC agus iad ag cumadh ríomhphoist le cód VBA

Déanta na fírinne, ní thairgeann Outlook rogha chun déileáil leis an tasc seo, ach, is féidir leis an gcód VBA seo a leanas fabhar a thabhairt duit, déan mar seo é le do thoil:

1. Coinnigh síos an ALT + F11 eochracha a oscailt Microsoft Visual Basic d’Fheidhmchláir fhuinneog.

2. Sa an Microsoft Visual Basic d’Fheidhmchláir fuinneog, cliceáil dúbailte ThisOutlookSession ó na Tionscadal1 (VbaProject.OTM) pána chun an modh a oscailt, agus ansin an cód seo a leanas a chóipeáil agus a ghreamú isteach sa mhodúl bán.

Cód VBA: Cosc a chur ar cheangaltáin a chur chuig faighteoirí CC agus 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

doc cc without attachment 1

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.
shot kutools outlook kutools tab 1180x121
shot kutools outlook kutools plus tab 1180x121
 
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL