excel中a1大于0,b1为红色格式,a2小于于0,b列为绿色格式,该如何设置

如题所述

这个很好设置的
用宏来实现
if range("A1").value > 0 then
range("B1").interior.color = grb(255,0,0)
end if
if range("A2").value < 0 then
range("B:B").interior.color = grb(255,255,0)
end if
温馨提示:答案为网友推荐,仅供参考
相似回答