Solved

Dynmic Header - based on text in middle of line

Posted on 2013-05-26
3
262 Views
Last Modified: 2013-05-28
A follow up Q to
https://secure.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Word/Q_28135765.html

It seems that it only picks up the StyleRef of text that is in the beginning of the line.  How would I do this if my ID's are often in the middle of lines?

thx
0
Comment
Question by:endurance
3 Comments
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 250 total points
ID: 39197822
Are you using a paragraph type of style? That is the usual way, but I would expect it to be limited to a whole paragraph.
Try using a character style. That should work wherever the text comes in a pargraph.
0
 
LVL 21

Accepted Solution

by:
EricFletcher earned 250 total points
ID: 39199977
A character style will do what you want. Note that the default setting for the STYLEREF field code is to display the 1st instance found on the page; add the "\l" switch if you want to show the last one on a given page.

As an added benefit of using a character style for this, you can then use Find to select all content that uses the style. Then drop out of the Find dialog, copy, and paste into a new document. This will give you a full list of all content tagged with the given style.
0
 

Author Comment

by:endurance
ID: 39201418
thx
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now