Hey all,
I am trying to figure out how I can make a textbox that will show the value of a cell but also allow you to change the value of that cell by changing the text in the TextBox.
Here is what I have so far.
My userform currently shows the value of either cell A1,A2, or A3 but I also would like to be able to change the value IN the textbox and have the cell value also change.
Any ideas?
I am trying to figure out how I can make a textbox that will show the value of a cell but also allow you to change the value of that cell by changing the text in the TextBox.
Here is what I have so far.
Code:
Private Sub UserForm_Activate()
'Australia
If ComboBox1 = "Australia" Then
TextBox1.Text = Worksheets("Sheet1").Range("A1")
End If
'China
If ComboBox1 = "China" Then
TextBox1.Text = Worksheets("Sheet1").Range("A2")
End If
'India
If ComboBox1 = "India" Then
TextBox1.Text = Worksheets("Sheet1").Range("A3")
End If
End Sub
My userform currently shows the value of either cell A1,A2, or A3 but I also would like to be able to change the value IN the textbox and have the cell value also change.
Any ideas?