Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2013, 08:39 PM
meileetan meileetan is offline Set style for part of paragraph Windows Vista Set style for part of paragraph Office 2007
Novice
Set style for part of paragraph
 
Join Date: Aug 2012
Posts: 16
meileetan is on a distinguished road
Default Set style for part of paragraph

I have set my header to pick up the text from a specific style called Project Name.
In a later paragraph, I have this text:
Project Name: Training Attendance Interface

I tried to set only the text "Training Attendance Interface" to the style Project Name but Word automatically also sets this style to the text "Project Name:". Thus, my header will display "Project Name: Training Attendance Interface" instead of my desired text of "Training Attendance Interface".



How can I fix this?
Reply With Quote
  #2  
Old 06-04-2013, 11:08 PM
eNGiNe eNGiNe is offline Set style for part of paragraph Windows 7 32bit Set style for part of paragraph Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

Sounds like you need to use a style separator. Here's an overview I found somewhere on the 'Net:
  1. Start a paragraph and apply a style
  2. Type some text.
  3. Press Ctrl+Alt+Enter to insert a style separator and assign a different style to the text after the separator.
… one of the best things I've learnt about from this forum!
Reply With Quote
  #3  
Old 06-04-2013, 11:18 PM
meileetan meileetan is offline Set style for part of paragraph Windows Vista Set style for part of paragraph Office 2007
Novice
Set style for part of paragraph
 
Join Date: Aug 2012
Posts: 16
meileetan is on a distinguished road
Default

Great tip! Learnt something new from the forum, as usual.
However, it still didn't solve the problem of having my header pick up the text from this style. It is still showing as an error even though I can see that "Project Name:" is formatted as Normal style and "Training Attendance Interface" is formatted as Project Name style.
Reply With Quote
  #4  
Old 06-05-2013, 12:29 PM
Charles Kenyon Charles Kenyon is offline Set style for part of paragraph Windows Vista Set style for part of paragraph Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Is your cross-reference in the Header a StyleRef Field?
You could apply a separate, character, style to the part you want in the header. Everything will look the same.
Reply With Quote
  #5  
Old 06-06-2013, 12:14 AM
meileetan meileetan is offline Set style for part of paragraph Windows Vista Set style for part of paragraph Office 2007
Novice
Set style for part of paragraph
 
Join Date: Aug 2012
Posts: 16
meileetan is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
Is your cross-reference in the Header a StyleRef Field?
You could apply a separate, character, style to the part you want in the header. Everything will look the same.
Hi,
What do you mean by applying a character style to the header? I've just inserted a link by using StyleRef Field. Do I need to format the header too?
Reply With Quote
  #6  
Old 06-06-2013, 02:46 AM
Charles Kenyon Charles Kenyon is offline Set style for part of paragraph Windows Vista Set style for part of paragraph Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

I'm sorry, I meant "heading."

You can apply a character style to selected words within a paragraph and use the StyleRef field to pick up only those words from your document rather than the entire paragraph. The character style does not have to have any different formatting, it can just be used as a target for the StyleRef field.
Reply With Quote
  #7  
Old 06-06-2013, 10:53 PM
eNGiNe eNGiNe is offline Set style for part of paragraph Windows 7 32bit Set style for part of paragraph Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

Good tip, Charles – I'll need to take a closer look at the StyleRef options.
Reply With Quote
  #8  
Old 06-07-2013, 01:09 AM
meileetan meileetan is offline Set style for part of paragraph Windows Vista Set style for part of paragraph Office 2007
Novice
Set style for part of paragraph
 
Join Date: Aug 2012
Posts: 16
meileetan is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
I'm sorry, I meant "heading."

You can apply a character style to selected words within a paragraph and use the StyleRef field to pick up only those words from your document rather than the entire paragraph. The character style does not have to have any different formatting, it can just be used as a target for the StyleRef field.
Works! Thanks for solving this.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Set style for part of paragraph Removing a paragraph style from the TOC CTwriter Word 3 01-25-2013 12:38 AM
Set style for part of paragraph Applying style to first part of paragraph foxtrot Word 3 07-24-2012 07:30 AM
Set style for part of paragraph Comma style without trailing zeroes but with decimal part Scaffold Excel 3 10-22-2011 11:08 PM
Set style for part of paragraph How to indent only half part of the paragraph 2em Samahu Word 2 01-17-2011 08:15 AM
Character style stripped while applying paragraph style sams_gates Word 0 08-29-2009 02:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft