Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a userform which has a number of lines like the ones below. Currently
these values are placed on the worksheet after I click a commandbutton (finished). What I would like is for the data to be placed on the worksheet as I move from one textbox to the next. Is this possible? rng(1, 47).Value = TextBox1.Text rng(1, 48).Value = TextBox2.Text rng(1, 53).Value = TextBox4.Text rng(1, 54).Value = TextBox5.Text rng(1, 71).Value = TextBox7.Text rng(1, 59).Value = TextBox8.Text rng(1, 60).Value = TextBox9.Text |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes. Just put the code in the Exit event of the TextBox.
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) Sheet1.Cells(1, 47).Value = TextBox1.Text End Sub -- Vasant "Patrick Simonds" wrote in message ... I have a userform which has a number of lines like the ones below. Currently these values are placed on the worksheet after I click a commandbutton (finished). What I would like is for the data to be placed on the worksheet as I move from one textbox to the next. Is this possible? rng(1, 47).Value = TextBox1.Text rng(1, 48).Value = TextBox2.Text rng(1, 53).Value = TextBox4.Text rng(1, 54).Value = TextBox5.Text rng(1, 71).Value = TextBox7.Text rng(1, 59).Value = TextBox8.Text rng(1, 60).Value = TextBox9.Text |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Userform update | Excel Programming | |||
Need help on Update Button on Userform | Excel Programming | |||
Dynamic update of UserForm TextBox | Excel Programming | |||
How can I update the userform? | Excel Programming | |||
UserForm Update on the Fly | Excel Programming |