change Task Color using VB

S

Shozi

Hello,

I am trying to change the color of the task using VB. I have explored the
who MS Project api, but found nothing to change the color. But we can change
the color of the task using MS Project Application.

Look forward to see a reply,

Shozi
 
J

John

Shozi,
You probably want to use the Font Method. With it you can set various
attributes, one of which is the color. The basic syntax is:
expression.Font(Name,Size,bold,Italic,Underline,Color,Reset)
Look in the VB Help file for details.

John
 
R

Rod Gill

Hi,

Simplest way for this sort of thing is to record a macro of you doing
manually what you want. If anything doesn't get recorded then you may not be
able to do it in VBA.

--
For VBA posts, please use the public.project.developer group.
For any version of Project use public.project
For any version of Project Server use public. project.server

Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.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

Top