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

Sut i atal anfon atodiadau at dderbynwyr CC a BCC wrth gyfansoddi e-bost yn Outlook?

Fel y gwyddom i gyd, bydd yr holl dderbynwyr ym meysydd “To”, “CC” neu “BCC”, yn cael yr atodiadau wrth anfon e-byst gydag atodiadau. Fodd bynnag, mae rhai defnyddwyr eisiau anfon yr atodiadau at y derbynwyr “At” yn unig, gyda'r derbynwyr “CC” a “BCC” yn cael y neges heb yr atodiadau. Sut allech chi ddatrys y swydd hon yn Outlook?

Atal anfon atodiadau i dderbynwyr CC a BCC wrth gyfansoddi e-bost gyda chod VBA


Atal anfon atodiadau i dderbynwyr CC a BCC wrth gyfansoddi e-bost gyda chod VBA

Mewn gwirionedd, nid yw Camre yn cynnig opsiwn ar gyfer delio â'r dasg hon, ond, gall y cod VBA canlynol ffafrio chi, gwnewch fel hyn:

1. Daliwch i lawr y ALT + F11 allweddi i agor y Microsoft Visual Basic ar gyfer Ceisiadau ffenestr.

2. Yn y Microsoft Visual Basic ar gyfer Ceisiadau ffenestr, cliciwch ddwywaith SesiwnOutlook oddi wrth y Prosiect1 (VbaProject.OTM) cwarel i agor y modd, ac yna copïo a gludo'r cod canlynol i'r modiwl gwag.

Cod VBA: Atal anfon atodiadau i dderbynwyr CC a 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
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations