anto.danny
Registered User.
- Local time
- Today, 04:25
- Joined
- Nov 8, 2015
- Messages
- 35
Greetings,
I made a tab control called TabCtl54 which has a pages named hello world and hello earth. I have a checkbox named 14 place on the page hello earth.
I placed a textbox called txtbx on the form.
Now I want a vba code that would change the backcolor of txtbx to yellow when the checkbox 14 is true.
CODE
I get no error in runtime, except that the txtbx doesn't change color when the checkbox is checked.
I made a tab control called TabCtl54 which has a pages named hello world and hello earth. I have a checkbox named 14 place on the page hello earth.
I placed a textbox called txtbx on the form.
Now I want a vba code that would change the backcolor of txtbx to yellow when the checkbox 14 is true.
CODE
Code:
Private Sub Form_Current()
Me.TabCtl54.Value = 1
If 14 = True Then
txtbx.BackColor = vbYellow
End If
End Sub
I get no error in runtime, except that the txtbx doesn't change color when the checkbox is checked.