#1
|
|||
|
|||
Word does not detect any text when applying style reference
Hi there. If there is actually another topic with similar question please mind to redirect me.
I discovered a problem while trying to make a proper header. On the first page of my document I have several zones with strings of characters. I want to reference these zones in order to transfer all character strings from there to header. And once text is modified in the first page it should be updated automatically in the header. First I've tried to simply use bookmarks. However, it does not work the way I need it. I can reference only text, but not the zone. I want to be able to delete all characters from text zone without losing the reference, which is apparently not possible with this method. I've tried to use style reference by creating a specific style for each text zone. When I try to refer to each style while using QuickPart>Field>Style I have the above-mentioned error:"Error! No text of specified style in document". Although I literally have text with this style applied in the document. And it's unique so no other text is using same style. I don't understand, how does it work. I can't figure out what I'm doing wrong. I would be grateful if someone could help me meet this requirement by fixing style reference issue or sharing with me another method. Thank you in advance. |
#2
|
||||
|
||||
You can use a STYLEREF field to refer to content in a given Style. If you have multiple 'zones' as you call them, simply create a Style for each one the reference each via their own STYLEREF fields. No bookmarks needed.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Here is more on the styleref field. It is one of the really nice features in Word that is little known:
|
#4
|
|||
|
|||
Thank you very much!
|
Tags |
header, reference, text |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automatically applying character style while using fast style feature | Didier Super | Word | 1 | 04-10-2017 05:10 AM |
Word 2016 how can I detect text changes? | MAtkins | Word VBA | 9 | 08-10-2016 05:54 PM |
End note Text Style and End note Reference Style | Kohawk65 | Word | 4 | 01-08-2016 08:29 AM |
When applying styles word is automatically reverting to "strong" style partway through my document | Victoria S | Word | 3 | 11-17-2015 12:51 PM |
Character style stripped while applying paragraph style | sams_gates | Word | 0 | 08-29-2009 02:03 AM |