praveen_ce
New Member
hi ppl,
i am created a following userform
takes value of X and gives value of Y .. simple one
and i did it
X($A$1) =1 ($b$1)
Y($a$2) =X+2 ($b$2)
'
Private Sub CommandButton1_Click()
Range("b1").Value = TextBox1.Value
TextBox2.Value = Range("d3").Value
End Sub
'
but now my requirement is , as user runs this userform
X should take watever value its there on $b$1
if user changes it to another value .. then it should give corresponding Y value
i tried doing it.. its not working
'
Private Sub TextBox1_Change()
TextBox1.Value = Range("b2").Value
End Sub
Private Sub CommandButton1_Click()
Range("b2").Value = TextBox1.Value
TextBox2.Value = Range("b3").Value
End Sub
'
please help me
i am created a following userform
takes value of X and gives value of Y .. simple one
and i did it
X($A$1) =1 ($b$1)
Y($a$2) =X+2 ($b$2)
'
Private Sub CommandButton1_Click()
Range("b1").Value = TextBox1.Value
TextBox2.Value = Range("d3").Value
End Sub
'
but now my requirement is , as user runs this userform
X should take watever value its there on $b$1
if user changes it to another value .. then it should give corresponding Y value
i tried doing it.. its not working
'
Private Sub TextBox1_Change()
TextBox1.Value = Range("b2").Value
End Sub
Private Sub CommandButton1_Click()
Range("b2").Value = TextBox1.Value
TextBox2.Value = Range("b3").Value
End Sub
'
please help me