Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: John Cooper   on Sep 16 In MS Office Category.

  
Question Answered By: Allan Bailey   on Sep 16

The following snippet will set conditional  formatting in the selection
to show red if not equal to the value in D.

Selection.FormatConditions.Delete
Selection.FormatConditions.Add _
Type:=xlCellValue, _
Operator:=xlNotEqual, _
Formula1:="=D1"
Selection.FormatConditions(1).Font.ColorIndex = 3

This is taken almost directly from the macro recorder.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Conditional formatting? Or get search suggestion and latest updates.


Tagged: