A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Applying style without changing color, HOW?



 
 
Thread Tools Display Modes
  #1  
Old October 13th, 2005, 08:50 AM
Søren M. Olesen
external usenet poster
 
Posts: n/a
Default Applying style without changing color, HOW?

Hi

I often write documentation, where I copy&paste lines, with color, from
VisualStudio. However eachtime I apply a style to the text in Word, all the
text turns into black, and the coloring is lost.....Is there a way to make
the style NOT change the coloring??

TIA

Søren




  #2  
Old October 13th, 2005, 11:12 AM
Robert M. Franz (RMF)
external usenet poster
 
Posts: n/a
Default Applying style without changing color, HOW?

Hi Søren

Søren M. Olesen wrote:
I often write documentation, where I copy&paste lines, with color, from
VisualStudio. However eachtime I apply a style to the text in Word, all the
text turns into black, and the coloring is lost.....Is there a way to make
the style NOT change the coloring??


Not really, no: color is part of the style definition. When you apply a
paragraph style, you'll lose the present color.

Either you manage to apply only a character style (if all you want to
change is Font formatting) and make sure you don't specify any color
there, or you'd probably need a short macro that applies a given style
while retaining the current color.

2cents
Robert
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word
  #3  
Old October 13th, 2005, 03:32 PM
Margaret Aldis
external usenet poster
 
Posts: n/a
Default Applying style without changing color, HOW?

Bottom posted
"Robert M. Franz (RMF)" wrote in message
...
Hi Søren

Søren M. Olesen wrote:
I often write documentation, where I copy&paste lines, with color, from
VisualStudio. However eachtime I apply a style to the text in Word, all
the text turns into black, and the coloring is lost.....Is there a way to
make the style NOT change the coloring??


Not really, no: color is part of the style definition. When you apply a
paragraph style, you'll lose the present color.

Either you manage to apply only a character style (if all you want to
change is Font formatting) and make sure you don't specify any color
there, or you'd probably need a short macro that applies a given style
while retaining the current color.


Another solution might be to create character styles for the colours (define
as default para font + appropriate colour), and use search and replace to
apply the character style to text currently in that colour. Then when you
apply the paragraph style the character style will be retained. Note,
however, that you can't apply more than one character style at a time, so
you couldn't also use Strong, Emphasis etc but would need to stick to direct
formatting.

--
Margaret Aldis - Microsoft Word MVP
Syntagma partnership site: http://www.syntagma.co.uk
Word MVP FAQ site: http://www.word.mvps.org


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outline level auto-select custom style Stuart Summerville Formatting Long Documents 12 May 24th, 2005 08:32 PM
printing the calendar - changing the daily style frank_n Calendar 0 December 9th, 2004 02:43 PM
Inconsistent style application in cross references Lynn Formatting Long Documents 8 July 3rd, 2004 10:19 PM
Applying new Style to all docs Jeremy New Users 3 June 14th, 2004 02:09 PM
Changing one style to another. newtknight Formatting Long Documents 10 June 4th, 2004 10:16 PM


All times are GMT +1. The time now is 05:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.