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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Conditional Formatting Colors 1

Status
Not open for further replies.

jaaret

Instructor
Jun 19, 2002
171
Is there a way to apply custom conditional formatting background and font colors, or am I limited to the palette provided in the Condtional Formatting Dialogue Box?
 
You can build Conditional Formats programmatically and these formats can use custom colours:

Code:
Private Sub Form_Open(Cancel As Integer)
Dim FCS As FormatConditions, FC As FormatCondition
   
    'Date
    Set FCS = Me!Updated.FormatConditions
    FCS.Delete ' Delete all format conditions
    Set FC = FCS.add(acFieldValue, acEqual, "#29/06/2007 05:46:50#")
    FC.BackColor = 9033867
    Set FC = Nothing
    Set FCS = Nothing

End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top