Sub color() Dim A As Integer Select Case ComboBox.Value Case 1 A = 3 Case 2 A = 5 End Select Range("A1").Activate With Selection.Interior .ColorIndex = A .Pattern = xlSolid End With End Sub