Microsoft KB Archive/255102

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Knowledge Base


Visio2000: Controlling the Starting Page Number of Your Visio Drawings

Article ID: 255102

Article Last Modified on 1/27/2007



APPLIES TO

  • Microsoft Visio 2000 Standard Edition
  • Microsoft Visio 2000 Professional Edition
  • Microsoft Visio 2000 Technical Edition
  • Microsoft Visio 2000 Enterprise Edition



This article was previously published under Q255102

SUMMARY

This article shows you how to start page numbering with a number other than the default page number for a particular page. You might want to do this if you were creating a multiple page document with a title page and an index page. In this case, you would want page 1 to be the third page of your document.

For additional information about how to set up automatic page numbering for a new drawing, click the article number below to view the article in the Microsoft Knowledge Base:

254629 Visio: How to Use Background Pages to Set Up Automatic Page Numbering


MORE INFORMATION

To set up the starting page number:

  1. On the first page of the drawing, draw a rectangle where you want to place the page number. If you do not want a border around the page number, set the line style of the rectangle to None. If you want a custom border around the page numbers, choose an appropriate shape and format it before proceeding to step 2. This shape is referred to as "Shape A" throughout the remaining steps.

    NOTE: If you start the page numbering on a page other than the first page, you must adjust the n variable in the custom formula in step 8. For example, if you start on the second page, the starting page number will be n+2, so if n=4, the page numbering will start at 6.
  2. Duplicate Shape A. The duplicate copy will be referred to as "Shape B" throughout the remaining steps.
  3. Select Shape A, and then on the Format menu, click Special. Write down the shapename in the Name section. It should be something like Sheet.1 You need this information for the formula in step 7.
  4. Select Shape A, and then on the Insert menu, click Field.
  5. In the Field dialog box, click Page Info for Category and Page Number for Field. Then click OK.
  6. Select Shape B, and then on the Insert menu, click Field.
  7. In the Field dialog box, click Custom Formula for Category.
  8. In the Custom Formula box, add the following formula:

    =EVALTEXT(shapename!TheText)+n

    where shapename is the name of Shape A according to the Special dialog box, and "n" is the starting page number minus 1 (so n+1 = starting page number). For example if n=4, the page numbering would start at 5.

    NOTE: The EVALTEXT function is case sensitive--it must be in all capital letters.
  9. Drag shape B on top of Shape A, and then align them both vertically and horizontally.
  10. Select both shapes, and then on the Edit menu, click Copy. It is important that you do not group the shapes, here or at any other point. Grouping the shapes will invalidate the custom formula that you entered in step 7.
  11. Go to the next page in your drawing file.
  12. Click Paste on the Edit menu. The shapes appear, displaying the next consecutive number.
  13. Repeat steps 11 and 12 for each subsequent page in your drawing file.


Keywords: kbhowto KB255102