开发者

excel color format through VB 6

I am working on a VB 6 application. I need to color a Excel work sheet which I have created through that application. I know the range iof the cells but i dont know how to do it.Can any one help 开发者_开发百科me out? Thankx in advance!


I don't know VB6, but I can tell how it works for VBA and probably its similar.

Range("A1:A2").Interior.Color = RGB(255, 0, 0)

with .Interior you get the background of the range and with .Color you can set an RGB value

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜