For Row = row_start To l1 + row_start
For Column = col_start To l2 + col_start
If Cells(Row, Column).Value = Cells(2, Column).Value Or Cells(Row, Column).Value = Cells(Row, 2).Value Then
Cells(Row, Column).Interior.ColorIndex = 3
End If
Next Column
Next Row
这是我正在执行的宏的一部分。我的 Row 变量从 5 运行到 33,Column 变量从 6 运行到 34。我在 AA6 和 AA2 中的值为 824.6。同样,AB7 和 AB2 中的 824.8。AC8 和 AC2 中的 825 值。等等.. 但是,只有 AC8 被涂成红色,其他的则没有。我不明白错误在哪里。任何人都可以帮忙吗?提前致谢!