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. Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    3,913
    Thanks
    0
    Thanked 192 Times in 176 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]

  4. #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.

  5. #4
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    3,913
    Thanks
    0
    Thanked 192 Times in 176 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
  •