如何在VB中置excel的cell中的文字色呢?
如我已用程序打了excel文件。要cell(1,2)置文本色怎置呢
thanks
[解决办法]
Cells(1, 2).Font.ColorIndex = 2
[解决办法]
ThisWorkbook.ActiveSheet.Cells(1, 2).Font.Color = vbRed
发布时间: 2012-02-22 19:36:55 作者: rapoo
如何在VB中置excel的cell中的文字色呢?
如我已用程序打了excel文件。要cell(1,2)置文本色怎置呢
thanks
[解决办法]
Cells(1, 2).Font.ColorIndex = 2
[解决办法]
ThisWorkbook.ActiveSheet.Cells(1, 2).Font.Color = vbRed