Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Word Newsgroups
Word Mail Merge
Programatically determine number of sections
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Peter Jamieson, post: 5612003"] Do these actually work? I've tried various variations here and the general impression I have is that at the point Word resolves the If statement, the values are never the ones you need. In Word 2007, Word seems to make the decision about which IF result to use right at the beginning of the merge - perhaps that's not the same for earlier versions. As long as you are outputting to a new document and have continuous page numbering (e.g. with a Directory merge) I think the following will work in recent versions of Word (2000 seems to get confused about NUMPAGES sometimes) { ={ NUMPAGES }-{ PAGE } \#";;'last page'" } { ={ NUMPAGES }-{ PAGE }-{ SECTIONPAGES } \#";'last section'" } This is primarily because Word does not resolve the nested fields when you do it this way. But of course that will only be OK if the text you want to insert is relatively small etc. Peter Jamieson [URL]http://tips.pjmsn.me.uk[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Word Newsgroups
Word Mail Merge
Programatically determine number of sections
Top