EXCEL单元格颜色的设置vba代码及颜色对照
| 分类: Windows系统 |
Cells(1, 1) Font ColorIndex = 3 & 39;字的颜色号为3 红色Cells(1, 1)
Interior ColorIndex = 3 & 39; 背景的颜色为3 红色Cells(2, 1) Font Color
= RGB(0, 255, 0) & 39;字的颜色绿色Cells(2
Cells(1, 1).Font.ColorIndex = 3 '字的颜色号为3 红色
Cells(1, 1).Interior.ColorIndex = 3 ' 背景的颜色为3 红色
Cells(2, 1).Font.Color = RGB(0, 255, 0) '字的颜色绿色
Cells(2, 1).Interior.Color = RGB(0, 0, 255) '背景的颜色蓝色
前一篇:北斗短报文通信实现源码

加载中…