Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2011, 02:11 PM
Friedebarth Friedebarth is offline Use NUMPAGES in formulae Windows Vista Use NUMPAGES in formulae Office 2010 32bit
Novice
Use NUMPAGES in formulae
 
Join Date: Nov 2011
Posts: 1
Friedebarth is on a distinguished road
Default Use NUMPAGES in formulae

Hey,



I inserted a Page X of Y into my header, and it gives me page 1 of 2. That is because there are actually 2 pages, but it is counting the 2nd page as the 1st one, which I want it to do. There seems to be no way of telling it that it is supposed to say 1 of 1, not 1 of 2. What I'm trying to do is:

{ = { Numpages } - 1 }

Rather than giving me the number of pages minus one, it gives me a syntax error. How do I do this properly? I've tried { = Numpages -1 }, but that doesn't work either.
Reply With Quote
  #2  
Old 11-30-2011, 02:22 PM
macropod's Avatar
macropod macropod is offline Use NUMPAGES in formulae Windows 7 64bit Use NUMPAGES in formulae Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi friedebarth,

Your field code syntax looks fine, but are all the braces (ie '{}') true field braces? You can't use ordinary ones.

A better way would be to have a next-page Section break between pages 1 & 2, then use a SECTIONPAGES field instead of a NUMPAGES field for the 'y' part.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why wont my simple formulae work? Florish Excel 4 02-17-2009 07:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft