• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

Setting up MS Project Text Forecolor

Hi ,

I would like to set up font and color for every row or task on MS Project using VB.
MS Project allows to set up font and color only if we select the required row, which I am trying to using VB code.

My problem is when  I use .SelectRow method and specify dynamic row number, it does not select specified row but it goes way to below specified row.

Can somebody help me on this?

Thanks
0
amiteshsinha
Asked:
amiteshsinha
  • 2
  • 2
1 Solution
 
cookreCommented:
Do you explicitly specify False for the second parm?

If not, the selection is relative to the active current row.
0
 
amiteshsinhaAuthor Commented:
Hi,
Thanks a lot for your reply.

You are right, I have specified "True" for seconf parameter. But still it skips few rows below.
Here i sthe parameter list for .SELECTROW method.

SelectRow(Row, RowRelative, Height, Extend, Add)

For first parameter "ROW" , I am specifying a dynamic variable, which is "i".
This is same as my TASK ID which helps me to sep up TASK Name. While entering TASK Name it does not skip any rows , it set text one after another line.

For Second Parameter "RowRelative" , I am passing "TRUE" Value

Here is the actual call for .SELECTROW method.

projApp.SelectRow i, True, 0, False, False

projapp is "Project Application Object"

Do you think anything going wrong here.

Thanks in advance.






0
 
cookreCommented:
If you want to go to row 'i', set the second parameter to false.
0
 
amiteshsinhaAuthor Commented:
Hi,
Thanks for your reply.
It is working. Great help, tried many ways to fix this but never thought this way.
Thanks a lot.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now