【发布时间】:2016-10-16 00:35:15
【问题描述】:
我目前使用的公式如下:
Columns("D:D").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=$D1='General Profiling'!$B$6"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
End With
Selection.FormatConditions(1).StopIfTrue = True
但有时,C6、D6 等中可能有一些值,我也希望条件格式能够提取和突出显示。
有没有办法确定一个值是否已放在 C2 到 C100 之间,然后在不同的电子表格上突出显示这些值?
【问题讨论】:
-
应该是:有没有办法识别 B6 到 Z6 之间是否有一个值,然后在不同的电子表格上突出显示这些值?
标签: excel vba formatting conditional highlight