I am trying to use a styleref field to display a partial paragraph formatted with a character style, as described in this article:
http://office.microsoft.com/en-ca/word-help/field-codes-styleref-field-HP005186193.aspx
In the example section, it clearly indicates that the styleref field should pick up a portion of a paragraph formatted with a character style. But when I try it, I always get the error message “Error! No text of specified style in document.” If I apply the style to an entire paragraph, it works fine.
I recall having done this successfully in earlier versions of Word, and I have found several online articles that describe how to do it, but it isn’t working for me. Am I doing something wrong, or is this a bug in Word 2010? Is there another way I can make this work?
Here is the text from my test document:
This is a quote: Create a character style
The text quoted above is: Error! No text of specified style in document.
The italic text is formatted with the Quote style.
The field code that produces the error message is: { STYLEREF Quote * MERGEFORMAT }