A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Try this:
Private Sub CommandButton5_Click()
Select Case ComboBox5.Text
Case "Red"
MsgBox "This is " & ComboBox5.Text
Case "Blue"
MsgBox "This is " & ComboBox5.Text
Case "Green"
MsgBox "This is " & ComboBox5.Text
Case "Yellow"
MsgBox "This is " & ComboBox5.Text
End Select
End Sub