[英]Excel VBA — three consecutive cells have the same interior.colorindex, but the range of these three cells returns different colors
[英]Two different interior cell color give me the same colorIndex VBA
ColorIndex限制为256种颜色,因此可以将多种RGB颜色转换为相同的ColorIndex。 使用.Color代替,在那里您可以使用更精确的RGB颜色。
Cells(1,1).Interior.Color = RGB(255,255,255)
ColorIndex
涵盖了非常有限的一组颜色值。
考虑改用Color
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.