Syntax error in a print-1st-page macro

  • Thread starter Thread starter Julio De Icaza
  • Start date Start date
J

Julio De Icaza

Hello coding guys,

I'm new to this but think is a easy deal: Create a macro to print the first
page of an opened email message, using the following procedure.

Application.ActiveWindow MailItem.PrintOut Pages:="1"

Please bring me a solution for the "Compile error: Syntax error" received.
Seasons greetings,
 
The error is coming up because there is no such command or set of arguments
in Outlook. You can only print an entire item. You'd have to export the text
of the item into an application such as Word and use Word's printing methods
to do what you want. Outlook has very primitive printing functionality.
 
Back
Top