Print preview Zoom default

N

Norm Rasmussen

I would like to change the default percentage in print
preview.(word '97)
Thanks for your help.
Norm
 
S

Stefan Blom

Sorry, I didn't read your question carefully enough. :-(

The article I referred to doesn't answer that question.
 
S

Stefan Blom

You probably have to intercept the FilePrintPreview command; the
following code seems to be working:

ActiveWindow.View.Type = wdPrintPreview
ActiveWindow.View.Zoom.Percentage = 100

(If you want some other percentage than 100, use that value instead!)

For general information about intercepting Word's built-in commands,
see:

Intercepting events like Save and Print
http://www.word.mvps.org/faqs/macrosvba/InterceptSavePrint.htm
 
S

Suzanne S. Barnhill

Generally speaking, Print Preview opens at the Zoom ratio last used (even
when you don't want it to). Only if you try to compel it to use a specific
Zoom does it seem to get balky. <sigh>

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
S

Stefan Blom

Or to make sure that the Print Preview toolbar button acts like a
toggle, try the following code:

Sub FilePrintPreview()
If Application.PrintPreview Then
ActiveDocument.ClosePrintPreview
Else
ActiveWindow.View.Type = wdPrintPreview
ActiveWindow.View.Zoom = 100 'Or your desired value
End If
End Sub
 
S

Stefan Blom

Suzanne S. Barnhill said:
Generally speaking, Print Preview opens at the Zoom ratio last used (even
when you don't want it to). Only if you try to compel it to use a specific
Zoom does it seem to get balky. <sigh>

Yes, annoying, isn't it? I'm hoping that my little macro should make
it possible to set a specific zoom level!
 

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