Cells(1, 1).Font.ColorIndex = 3 '字的颜色baidu号为zhi3 红色 Cells(1, 1).Interior.ColorIndex = 3 ' 背景的颜色为3 红色 Cells(2, 1).Font.Color = RGB(0, 255, 0) '字的颜色绿色dao Cells(2, 1).Interior.Color = RGB(0, 0, 255) '背景的颜色蓝色 Public Sub diandian10() 接下来我们用实际的代码,来做个体验 假设有这样一个表格,我们要做的就是把 >11 的表格设置为红色
Excel VBA Interior.ColorIndex 色彩列表
|
|