Syntax error in a print-1st-page macro

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,
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top