返回列表 上一主題 發帖

[發問] 錄製的程式碼,執行產生BUG

With Range("BB17:BK80")
    .Select
    .FormatConditions.Delete
    .FormatConditions.Add Type:=xlExpression, Formula1:= _
        "=MMULT(1,MIN(OFFSET(BB$16,ROW($1:$10)*7-7,))/($BA17=""最小"")/(BB16<5))=BB16"
    .FormatConditions(1).Font.ColorIndex = 3
    .FormatConditions(1).Interior.ColorIndex = 40
    .FormatConditions.Add Type:=xlExpression, Formula1:= _
        "=MMULT(1,MIN(OFFSET(BB$16,ROW($1:$10)*7-7,))/($BA17=""最小""))=BB16"
    .FormatConditions(2).Font.ColorIndex = 10
    .FormatConditions(2).Interior.ColorIndex = 40
    .FormatConditions.Add Type:=xlExpression, Formula1:= _
        "=($BA17=""最小"")*(BB16<10)"
    .FormatConditions(3).Font.ColorIndex = 10
End With

應該是陣列公式的問題, 必須手動再確定,
改成一般公式~~

========================

TOP

        靜思自在 : 世上有兩件事不能等:一、孝順 二、行善。
返回列表 上一主題