VBA-Defined Constants: vbBlue : Color Constant « Application « VBA / Excel / Access / Word






VBA-Defined Constants: vbBlue

 
Sub obj3()
    Dim myObject As Range
    Set myObject = Range("A1:B10")
    myObject.Interior.Color = vbBlue
End Sub

 








Related examples in the same category

1.To use standard colors: vbBlack, vbRed, vbGreen, vbYellow, vbBlue, vbMagenta, vbCyan, or vbWhite
2.VBA-Defined Constants: vbBlack
3.VBA-Defined Constants: vbCyan
4.VBA-Defined Constants: vbGreen
5.VBA-Defined Constants: vbMagenta
6.VBA-Defined Constants: vbRed
7.VBA-Defined Constants: vbWhite
8.VBA-Defined Constants: vbYellow