Microsoft KB Archive/69403

{|
 * width="100%"|

Word: Macro for Printing Odd or Even Pages

 * }

Q69403

-

The information in this article applies to:


 * Microsoft Word for MS-DOS, versions 3.x, 4.0, 5.0, 5.5, 6.0

-

SUMMARY
You can use the following macros to print all the of the odd pages or all the even pages starting from the current page in a Microsoft Word for DOS document. For example, if the cursor is currently on page 7, the macro prints pages 7, 9, 11, and so on, until it reaches the end of the document.

Note: The opening chevron (<<) is created by pressing CTRL+[, and the closing chevron (>>) is created by pressing CTRL+].

Word Versions 5.5, 6.0
  <> <> <> fp < > <> <>

Word Version 5.0
  prn jp<> jp<> <> po p < > <> <>

Word Version 4.0
  prn jp<> jp<> <> po p < > <<SET currentpage = currentpage + 2>> <<ENDWHILE>>

Word Versions 3.x
<pre class="FIXEDTEXT">  prn jp<<SET currentpage = field>> jp<<SET lastpage = field>> <<WHILE currentpage <= lastpage>> po p < > <<SET currentpage = currentpage + 2>> <<ENDWHILE>> Additional query words: 3.00 4.00 5.00 5.50 6.00

Keywords : kbmacro kbprint

Issue type :

Technology :