![](/img/trans.png)
[英]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.