Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Page Layout / November 2005

Tip: Looking for answers? Try searching our database.

Conditional Margin Formatting? (Advanced)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kchantry - 31 Oct 2005 21:25 GMT
We're trying to create a document template that changes its bottom margin
depending on the total number of pages.  A one-page document should have a
1-inch bottom margin; two or more pages should have a two-inch margin.

The solution we found was to insert a formula in the footer of page 1:
{IF{NUMPAGES}>1"       "}{IF{NUMPAGES}=1""}

That space in the first formula is a one-inch tall white image.  So when a
document exceeds one page, Word essentially inserts our little white space,
inelegantly increasing the bottom margin to 2 inches.  The second formula was
added so that if you type a two-page document, then delete a page's worth of
text, the footer will revert back to containing no 1-inch "blank" graphic.  
In theory.

This works wonderfully in Word v.X (OSX).  Unfortunately, in Word 2003
(Windows), the formula only seems to kick in when you force Word to count the
number of pages.  Printing or opening print preview does the trick.  This
situation gets even stickier in the complex case of typing for two pages,
then deleting text and hoping it will go back to the one-inch margins.

Question 1: How do I get Word 2003 to constantly check on the number of
pages so that my users don't have to click "print preview" in order for the
formula to kick in?

Question 2: Is there a way I can improve my formula so that the solution is
a bit more functional?  (Something about the way we've written it doesn't
settle well with me.)

Question 3: Is there a better approach that will work cross-platform that
I'm somehow missing?

Thank you!
macropod - 01 Nov 2005 09:21 GMT
Hi kchantry,

You should only need the first formula in any version of Word.
{IF{NUMPAGES}>1"       "}
However, instead of having an image between the double quotes, I'd suggest
an empty paragraph with the required leading space.

If the formula is in the footer, and you're using page layout view, it
should do its thing automatically as you add/delete pages. For other views,
you might need to ensure 'background repagination' is active.

Also, in Word 2003, make sure you've checked "White space between pages"
(under Tools | Options|View). Alternatively, move the mouse pointer over a
page separator and click.

Cheers

> We're trying to create a document template that changes its bottom margin
> depending on the total number of pages.  A one-page document should have a
[quoted text clipped - 28 lines]
>
> Thank you!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.