Hi Friends,
I have a VBA User Form consisting of 1 button and 2 textbox. When i press this button , the value of button is coming in the textbox1. Till this part i have completed.
I have one sheet where some values (value) are present. Corresponding to this values there are some other values (value2) .
So, when i press on the button , the value will goto textbox1 and this value (value) should be searched in the sheet and its corresponding value (value2) should come in the textbox2.
Can someone please help me on this.
Thanks
I have a VBA User Form consisting of 1 button and 2 textbox. When i press this button , the value of button is coming in the textbox1. Till this part i have completed.
Code:
Private Sub button1_Click()
If button1.Value = False Then
TextBox1.SelText = ComboBox1.Text + " "
Else
TextBox1.SelText = ComboBox1.Text + " " + TextBox1.Text + " "
End If
End Sub
I have one sheet where some values (value) are present. Corresponding to this values there are some other values (value2) .
So, when i press on the button , the value will goto textbox1 and this value (value) should be searched in the sheet and its corresponding value (value2) should come in the textbox2.
Can someone please help me on this.
Thanks
Last edited: