Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

conditional formatting

Status
Not open for further replies.

Waynest

Programmer
Jun 22, 2000
321
0
0
GB
Hi

I want to set a conditional format as follows

If control-B < control-A then set forecolour of control-C to blue

I think I need to use the 'Expression is'facility, but dont know the syntax for the expressions.

Can someone give me an example? I am using Office XP.

Thanks
Wayne
 
Try:

If yourControlA.Value < yourControlB.value Then yourControlC.ForeColor = 16711680

Cheers,

Pete
 
Wayne,
You posted this:

I want to set a conditional format as follows

If control-B < control-A then set forecolour of control-C to blue

Did you ever get this to work? If yes, would you please explain it to me. Does the code go in an EventProcedure?
 
Wayne you are right, you need to use the Expression Is option and type the following.
[control-B]<[control-A]

Dermot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top