How to create a new standard color on the palette?

  • Thread starter Thread starter Suzie_B
  • Start date Start date
S

Suzie_B

I am wanting to create a new standard color (140R, 143G, 76B) for cells in a
table. Is there anyway to do this so that I don't need to go into Custom each
time??
 
Create a character style (and/or paragraph style) that has the font colour
attributes you require and apply it to the text.
For table background shading, use the following macro to apply your colour
to the table the cursor is in.

Sub MyTableColor()
Selection.Tables(1).Shading.BackgroundPatternColor = 5017484
End Sub

or for individual cells

Sub MyCellColor()
Selection.Cells.Shading.BackgroundPatternColor = 5017484
End Sub

http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Thanks Graham. I appreciate it.

Graham Mayor said:
Create a character style (and/or paragraph style) that has the font colour
attributes you require and apply it to the text.
For table background shading, use the following macro to apply your colour
to the table the cursor is in.

Sub MyTableColor()
Selection.Tables(1).Shading.BackgroundPatternColor = 5017484
End Sub

or for individual cells

Sub MyCellColor()
Selection.Cells.Shading.BackgroundPatternColor = 5017484
End Sub

http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
You are welcome :)

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top