Hello I current have a userform with these code
Private Sub UserForm_Initialize()
Me.TextBox2.Text = CStr(ThisWorkbook.Sheets("Sheet1").Range("F15").Value)
End Sub
-> this help to make my textbox show the value of the cell F15, whenever initialized.
Next,
Private Sub TextBox2_Change()
If TextBox2.Text = "Hello" Then
Label1.BackColor = RGB(255, 128, 128)
Else
Label1.BackColor = RGB(255, 255, 255)
End If
End Sub
-> this code will help to make my LABEL turn colour when there is a 'Hello' in the cell, could you assist me on what changes to make if i want it to turn colour if there is "Hello boy" in the cell as well. means not 'Hello' specific. Thanks
Private Sub UserForm_Initialize()
Me.TextBox2.Text = CStr(ThisWorkbook.Sheets("Sheet1").Range("F15").Value)
End Sub
-> this help to make my textbox show the value of the cell F15, whenever initialized.
Next,
Private Sub TextBox2_Change()
If TextBox2.Text = "Hello" Then
Label1.BackColor = RGB(255, 128, 128)
Else
Label1.BackColor = RGB(255, 255, 255)
End If
End Sub
-> this code will help to make my LABEL turn colour when there is a 'Hello' in the cell, could you assist me on what changes to make if i want it to turn colour if there is "Hello boy" in the cell as well. means not 'Hello' specific. Thanks