Setting the on-screen width of templates

J

Johann

I have developed a Word XP (2002) template with some macros for generating
photo albums which does everything I want but for one simple thing. When it
loads, it scales the document down so that the whole page fits on the screen.
I want it so that it is a fit to page width. I have tried loading the
template, setting Zoom to page width and saving the template but nothing
changes. It works fine on documents generated from the template. How do I
perform this ridiculously simple operation on a template ?
 
D

Dave Lett

Hi John,

You can use something like the following:

ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitBestFit

You can put this in an AutoOpen routine (maybe an AutoNew routine, too) in
your template.

HTH,
Dave
 

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