
How to print email without the default fields
by OShon on Fri 29 October 2010 06:04 in Microsoft Outlook, Macro
tags: ATTACHMENT, CC, default fields, email, FROM, message, Microsoft Outlook, print, printing, SUBJECT, TO
0 comments | Add a comment
tags: ATTACHMENT, CC, default fields, email, FROM, message, Microsoft Outlook, print, printing, SUBJECT, TO
0 comments | Add a comment
Email message when printed from Outlook always contain fields:
• From
• Sent
• To
• CC
• Subject
• Attachments
Additionally the attachment icons resembling the type of the file are also on the printout. MS Outlook unfortunately does not have a setting allowing choosing which of those fields are printed or not.
The macro below prints the email without chosen fields and the attachment information. Unfortunately fields From and Sent are always printed.
To remove fields of your choice simply delete the corresponding part of the code below.
Sub PrintWithoutHeaders()
Dim oMail
For Each oMail In Application.ActiveExplorer.Selection
oMail.Copy()
' Remove TO
oMail.To = ""
' Remove CC
oMail.CC = ""
' Remove SUBJECT
oMail.Subject = ""
' Remove ATTACHMENTS
For nIndex = oMail.Attachments.Count To 1
oMail.Attachments.Remove(nIndex)
Next
oMail.PrintOut()
oMail.Delete()
Next
End Sub
© All rights reserved. No part or whole of this article may not be reproduced or published without prior permission.