I use cells(1,1).Interior.Color=rgb(255,0,0) to change the cell's color.....why the color of the border of the cell also be changed?
How to change the cell color only inside not the border?
I don't know, I've been using that syntax for years now over a few versions of XL w/o issue is all i know. Have you even tried it? otherwise use the with statement and force the broder to stay the same.
I have just tested:
Cells(6, 5).Interior.Color = RGB(255, 255, 255)
Cells(3, 1).Interior.ColorIndex = 0
Both set the corlor to white. However, in the first case, the border of cells(6,5) is losted while in the second one the border still there.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.