View Single Post
  #1   Report Post  
Frenchy
 
Posts: n/a
Default C# automation : coloring text with specific rgb or html color

Hi all,

I'm trying to color some text with colors that aren't defined in Word (ex
blue, dark-green,...)

To see how Word handles it I recorded a small macro, I selected a text and
colored It. Here's what It looks like;

Selection.Font.Color = 14897469

I'm trying and trying to create this number from a rgb or html color but I
can't find any function in Word or C# wich convert my colors in the Word colo
format

Any idea?