我想用RGB更改单元格颜色:212,231,237和i记录宏如下:
Sub Macro2()
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 15591380
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub
我想知道.Color = 15591380
由于
答案 0 :(得分:1)
RGB代码就是这样;)
Sub Macro2()
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = RGB(212, 231, 237)
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub