How do I make a Textbox update after a check box has been clicked.

R

rgvanhorn

This is what I tried.

Private Sub CheckBox1_Click()
If CheckBox1_Click = True Then

TextBox1_Change = "I am a happy person."

Else

TextBox1_Change.Caption = ""

End If
End Sub
 
J

JB

rgvanhorn said:
This is what I tried.

Private Sub CheckBox1_Click()
If CheckBox1_Click = True Then

TextBox1_Change = "I am a happy person."

Else

TextBox1_Change.Caption = ""

End If
End Sub
Is this in a user form or a word form?

If it's a user form then you should be using something like -
Private Sub CheckBox1_Click()
If CheckBox1.value = True then
TextBox1.Text = "I am a happy person."
End If
End Sub

J
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top