Highlighting a Row

M

misssugarella

Im very new to MS project and Im not much of a "techie" person but it there a
way to highlight a row?

any help is appreciated!

THANKS!
 
J

Jan De Messemaeker

Hi,

No, sorry. You can change the font of any selection by selecting it, then
using the application.font method.
HTH
 
J

John

misssugarella said:
Im very new to MS project and Im not much of a "techie" person but it there a
way to highlight a row?

any help is appreciated!

THANKS!

misssugarella,
Sweet lady?
I'm going to avoid providing the obvious answer (i.e. just click on the
row) since I think you are trying to ask something else but I'm not sure
what it is. However, since you posted in the developer newsgroup I might
assume you want to do the highlighting with VBA. Now, highlight can mean
several things. If you are trying to color the background of all fields
in a row, sorry, Project does not have that feature. The best you can do
is to set the font characteristics for a row. For example the following
code will set the 2nd row of the current view to bold:

Sub Highlight()
SelectRow Row:=2, rowrelative:=False
Font Bold:=True
End Sub

Hope this helps.
John
Project MVP
 
M

misssugarella

THANKS everyone for ur input!!!!

John,

my question was more along the lines of .... changing the background color
of the row.
I didnt think that was possible.

misssugarella
p.s. its a nickname that my friends gave me years ago.
 
J

John

misssugarella said:
THANKS everyone for ur input!!!!

John,

my question was more along the lines of .... changing the background color
of the row.
I didnt think that was possible.

misssugarella
p.s. its a nickname that my friends gave me years ago.


misssurgarella,
Well you must be a sweetie then.
You're welcome.
John
 
C

ChuckB

John said:
misssurgarella,
Well you must be a sweetie then.
You're welcome.
John
John:

I tried your code and it did not work--is there something else I should be
adding in?

Thanks,

Chuck
 
J

John

ChuckB said:
I tried your code and it did not work--is there something else I should be
adding in?

Thanks,

Chuck

Chuck,
Didn't work? That's pretty general. Unless I state otherwise I always
test code that I post so I know it works. Without further information
there are only a couple of thing I can think of that would cause the
user to think it didn't work.
1. Is the second row in the active view blank?
2. Is the second row in the active view a Summary Line which is already
bold?

Help me out here, then I can better help you.

John
Project MVP
 
C

ChuckB

John said:
Chuck,
Didn't work? That's pretty general. Unless I state otherwise I always
test code that I post so I know it works. Without further information
there are only a couple of thing I can think of that would cause the
user to think it didn't work.
1. Is the second row in the active view blank?
2. Is the second row in the active view a Summary Line which is already
bold?

Help me out here, then I can better help you.

John
Project MVP
John:

I assumed that the code would highlight every other row in a project plan;
when I
ran the macro, it failed to do that. Maybe I was expecting something that
the code
is not written to do.

Thanks,

Chuck
 
J

John

ChuckB said:
I assumed that the code would highlight every other row in a project plan;
when I
ran the macro, it failed to do that. Maybe I was expecting something that
the code
is not written to do.

Thanks,

Chuck

Chuck,
Why would you think that? I think I clearly stated that the sample code
"...will set the 2nd row of the current view to bold". However, I think
you are confusing your post in this newsgroup (developer) with the one
you placed in the main newsgroup (project). There I provide the code to
to what you want.

John
Project MVP
 
C

ChuckB

John said:
Chuck,
Why would you think that? I think I clearly stated that the sample code
"...will set the 2nd row of the current view to bold". However, I think
you are confusing your post in this newsgroup (developer) with the one
you placed in the main newsgroup (project). There I provide the code to
to what you want.

John
Project MVP
Thanks, i'll try to locate the other posting.

Chuck
 

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