【VBA】給單元格設置背景色

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) '背景的顏色- 藍
相關文章
相關標籤/搜索