开发者

excel color format through VB 6

开发者 https://www.devze.com 2023-02-18 12:01 出处:网络
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 开发者

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

精彩评论

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