Reply
 
Thread Tools Display Modes
  #1   Report Post  
Søren M. Olesen
 
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   Report Post  
Robert M. Franz (RMF)
 
Posts: n/a
Default

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   Report Post  
Margaret Aldis
 
Posts: n/a
Default

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


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help ! Applying a style to a selection changes the style itself Patrick Germain Microsoft Word Help 3 September 30th 05 11:58 AM
style not changing properly seth Formatting Long Documents 4 June 19th 05 07:01 PM
style not changing properly seth Page Layout 4 June 19th 05 07:01 PM
Number list number is gone when changing style Lisa Microsoft Word Help 1 May 12th 05 11:03 PM
Word 2003: Can one disable table styles? [email protected] Tables 5 April 10th 05 10:02 AM


All times are GMT +1. The time now is 10:09 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"