0
我想通過VBA代碼自動將我的所有電子郵件都發送到我的個人電子郵件地址。但是當我去發送郵件時,BCC字段對我來說是可見的,我想將它從自己隱藏起來,這樣即使它對我來說也是不可見的。通過VBA自動密件抄送,但密件抄送字段隱藏
任何人都可以請幫助這與VBA代碼。由於
目前我使用下面的代碼:
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 protected]"
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
讓我們看看你的代碼,請 – duDE
感謝duDE編輯。 – Faraz
嗨 我在Outlook 2013中嘗試過這種解決方案,但它不工作,請任何建議... – Faraz