Sub 宏1()
'
' 宏1 宏
'
'
'Cells(7, 2).Interior.ColorIndex
Worksheets("sheet1").Range("B1").Value = InteriorColor(Range("G2"))
End Sub
Function InteriorColor(CellColor As Range)
Application.Volatile
InteriorColor = CellColor.Interior.Color
End Function
vba获取单元的背景颜色
最新推荐文章于 2024-01-16 13:30:04 发布