formula1 formulalocal条件格式,语言差异

时间:2017-10-10 13:01:58

标签: excel vba conditional-formatting

我在设置条件格式时遇到问题。

我正在使用excel的波兰语版本,如果我用英语写COUNTIF,它将无法工作。它只会在我写完的时候才会起作用。 我尝试使用formulalocal但没有成功

Lastrow = ActiveSheet.Range("A2").End(xlDown).Row
Cells.FormatConditions.Delete
Range("A5:C5").Select
Range(Selection, Selection.End(xlDown)).Select

Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=COUNTIF($E5:$M5;""<0"")>0"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
    With Selection.FormatConditions(1).Interior
        .PatternColorIndex = xlAutomatic
        .Color = 5263615
        .TintAndShade = 0
    End With

0 个答案:

没有答案