M
minerva
I have a multiple page Word document. The VBA that creates
the doc puts a page break in between the sections of the
doc. Each section needs to fit on one page, but it often
grows to two pages. I want to use
ActiveDocument.FitToPages or something like it to cause
everything between my page breaks to get formatted (font
size or margins, it doesn't matter) so that section fits
on one page instead of two.
The ActiveDocument.FitToPages method is designed to
evaluate your entire doc and works great if you have a two
page doc. But if you have a document of say 20 pages that
needs to be 10 (one page per 10 "sections"), is there a
different method that takes the hard page breaks into
account?
Additional info:
These are not true section breaks. They are just page
breaks. This document is a set of letters that get mailed
out. The code that generates the letters is not a mail
merge. The letters are created from a VB.Net routine that
uses a dot file to create a new doc, fill in some custom
tags, insert a page break and loop to the next person in
the dataset.
the doc puts a page break in between the sections of the
doc. Each section needs to fit on one page, but it often
grows to two pages. I want to use
ActiveDocument.FitToPages or something like it to cause
everything between my page breaks to get formatted (font
size or margins, it doesn't matter) so that section fits
on one page instead of two.
The ActiveDocument.FitToPages method is designed to
evaluate your entire doc and works great if you have a two
page doc. But if you have a document of say 20 pages that
needs to be 10 (one page per 10 "sections"), is there a
different method that takes the hard page breaks into
account?
Additional info:
These are not true section breaks. They are just page
breaks. This document is a set of letters that get mailed
out. The code that generates the letters is not a mail
merge. The letters are created from a VB.Net routine that
uses a dot file to create a new doc, fill in some custom
tags, insert a page break and loop to the next person in
the dataset.