VBA to Scale to Paper Size?

S

Sandi V

I tried to record a macro to run the File, Print, Scale to Legal paper size,
but the resulting VBA shows nothing:

Sub PrintLegal()
'
' PrintLetter Macro
' Macro recorded 7/10/2009 by sandiv
'
End Sub

Does anybody know the VBA code to do this?
Thanks in advance!

Sandi
 
S

Stefan Blom

The following code should do the trick:

ActiveDocument.PrintOut _
printzoompaperwidth:=8.5 * 1440, _
printzoompaperheight:=14 * 1440
 

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