Hi there,

I've been looking around for examples on 'Select Case', changed around bits of code, but it hasn't helped.

Simply, what I have is a command button and a text box. When the command button is clicked, new text appears in the textbox - depending on the code in that particular part of the case statement.

What am I doing wrong?

Thank you

Private Sub Command1_Click()
Select Case Text1.Text
Case 1
Text1.Text = "aaaa"
Case 2
Text1.Text = "bbbb"
Case 3
Text1.Text = "cccc"
End Select
End Sub