The information in this article applies to:
- Microsoft Word 97 for Windows
SYMPTOMS
You receive the following error message when you attempt to print or
preview a Word 97 document in Word 6.0 or 7.0:
Error! Style not defined.-Error! Bookmark not defined.
CAUSE
The Seq and StyleRef fields contain switches that are not supported in Word
6.0 or 7.0. For example:
- All Seq fields contain a \s 1 switch.
-and-
- The StyleRef field contains \s switch.
WORKAROUND
To work around this problem, do the following:
- Open the Word 97 document in Word 6.0 or Word 7.0.
- On the Format menu, click Heading Numbering. Select the heading
numbering style you want to use, and then click OK. Click Yes when you
receive the message that Word is removing bullets and numbering.
- Turn on view field codes by pressing ALT+F9. The field codes used for
the caption will look similar to this:
Figure {STYLEREF 1 \s}-{SEQ Figure \* Arabic \s 1}
- On the Edit menu, click Replace.
- In the Find What box, type "\s 1" (without the quotation marks). In the
Replace With box, type "\r 1" (without the quotation marks). Click Find
Next until you locate a SEQ field that immediately follows a paragraph
formatted with a heading style. Click Replace to replace the field
switch. Repeat this step for all SEQ fields that immediately follow a
paragraph formatted with a heading style.
- Click OK.
Do not close the Replace dialog box.
- In the Find What box, type "Arabic \s 1" (without the quotation marks).
In the Replace With box, type "Arabic" (without the quotation marks).
Click Replace All.
This replaces the switches in all SEQ fields that do not immediately
follow a paragraph formatted with a heading style.
- Click OK.
Do not close the Replace dialog box.
- In the Find What box, type "STYLEREF 1 \s" (without the quotation
marks). In the Replace With box, type "STYLEREF 1 \n" (without the
quotation marks). Click Replace All.
- Click OK.
- Click Close.
- Turn off fields codes by pressing ALT+F9.
- On the File menu, click Print Preview.
All the caption fields will be updated.
- Click the Close button on the Print Preview toolbar.
The caption fields used for the caption should look similar to the
following after you complete the previous steps. The caption that follows
a paragraph formatted with a heading style should look like this:
Figure {STYLEREF 1 \n}-{SEQ Figure \* Arabic \r 1}
The subsequent captions should look like this:
Figure {STYLEREF 1 \n}-{SEQ Figure \* Arabic}
STATUS
Microsoft has confirmed this to be a problem in the products listed at the
beginning of this article. We are researching this problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.