PDA

View Full Version : A Macro to print a selection of an email



tanbob
03-09-2008, 04:31 PM
Hi there. I have been trying for a while now to find out how to create a custom macro so that I can simply click a button on my toolbar and print selected text within an email. (i.e. I open my email and rathan than printing the whole conversation, I highlight the part of the email which I am interested in keeping and select print, print selection, ok).

I am using Microsoft Office Outlook 2003 on XP OS and it doesn't allow me to record a macro. I tried recording a macro in word and then copying it to the VB module in Outlook but it didn't run. Also tried recording a macro in Excel and doing the same thing but that didn't work.

This is what it looked like

Sub Selprint()
Selection.PrintOut Copies:=1, Collate:=True
End Sub

With the above I receive a dialog box stating runtime error '424', Object required. Can someone please help me or aleast tell me whether it can be done or not so I don't waste anymore time.

Thanks in advance.:dunno