Bold color

R

rob p

I am working with a macro that colors text in a table cell.
Cell.Range.Font.Color = wdColorBlack / White / Gray50 etc. This is a Word
2000 - template.

When setting the font to ColorBlack, I want a really dark black, not just
black. How can I adjust above so I can get specifically the font Arial Bold
or the font Arial in bold for the instances ? (Arial is the default to begin
with.) ColorBlack just gives me regular Arial.

Thanks much.
rob
 
J

Jonathan West

rob p said:
I am working with a macro that colors text in a table cell.
Cell.Range.Font.Color = wdColorBlack / White / Gray50 etc. This is a Word
2000 - template.

When setting the font to ColorBlack, I want a really dark black, not just
black. How can I adjust above so I can get specifically the font Arial
Bold
or the font Arial in bold for the instances ? (Arial is the default to
begin
with.) ColorBlack just gives me regular Arial.

You would have to write your code so that it explictly applies this
formatting. You can't simply redefine the color so that it means something
else.
 
R

Rob Peterson

Hi.

I don't want to change anything. I just can't see where I set the color bold
with the wdColor property. Or if not that property, I haven't found another
that will do what I want.
Thanks.
rob
 
J

Jean-Guy Marcil

Rob Peterson was telling us:
Rob Peterson nous racontait que :
Hi.

I don't want to change anything. I just can't see where I set the
color bold with the wdColor property. Or if not that property, I
haven't found another that will do what I want.
Thanks.

This is because you do not set the bold property with the ".Color" property,
but with the ".Bold" propert, as in:

Cell.Range.Font.Bold = True

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
R

rob p

Excellent. That is exactly what I needed. I wasn't putting in the true /
false part.
Rob
 

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

Top