Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Jun 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Styleref field doesn't recognize character (linked) styles in Word 2010

    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/wo...005186193.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 }

  2. #2
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    3,978
    Thanks
    0
    Thanked 208 Times in 189 Posts
    Cross-posted at: http://answers.microsoft.com/en-us/o...3-4f0bd5b0fbc7
    For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  3. #3
    New Lounger
    Join Date
    Jun 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Didn't know posting in more than one forum was a no-no. Sorry.

  4. #4
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    3,978
    Thanks
    0
    Thanked 208 Times in 189 Posts
    Quote Originally Posted by bloomhaven View Post
    Didn't know posting in more than one forum was a no-no. Sorry.
    It isn't; please open the link and read the material there.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •