ColorIndex is limited to 256 Colors, so a broad range of RGB Colors get converted to the same ColorIndex. Use .Color instead, there you are able to use RGB Colors, which are more precise.
Cells(1,1).Interior.Color = RGB(255,255,255)
ColorIndex
covers a very limited set of values for a very limited set of colors.
Consider using Color
instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.