I'm trying to hide the Bcc field in an email being drafted in Outlook 2010.
I'm using code to add an email address to Bcc which shows the field. I want the real-estate on the screen back.
Here's what I have so far (in ThisOutlookSession):
Sub add_bcc_to_cur_email()
Dim cur_msg As MailItem
Set cur_msg = ActiveInspector.CurrentItem
cur_msg.BCC = "first.last@domain.com" 'this works correctly
cur_msg.GetInspector.CommandBars.ExecuteMso "Bcc" 'this does nothing
End Sub
I was thinking there was a way to control the visibility of the Bcc field directly. I found this -- The second post seemed to have a solution, but that was for 2003.
I thought I could try to launch the Bcc item in the Ribbon: Options > Show Fields > Bcc.
I googled and came up with this. The thread seemed to be inconclusive.
This worked for me in 2010
cur_msg.GetInspector.Commandbars("Menu Bar").Controls("View").controls("Bcc Field").execute