I've created a textbox control on a userform and I am trying to figure out how to make the text populate to a worksheet range in sequence automatically. I've figued out how to get the text that the user types in to populate in a specific range, but I'd like each entry from the user to populate on the next cell below the previous entry automatically. I've used .showdataform to do this, but I want the userform to be customized rather than using .showdataform. This is what I've been working with so far:
Private Sub TextBox1_Change ()
Dim R As Range
Dim S As String
Set R = Sheet1.Range("A 1:B10")
S = MyForm.Textbox1 .Value
R.Value = S
End Sub
Rather than having the range as A1 to B10 I'd like the text to populate in a range such as Column A and each entry from the user appear in cell A1, then A2, then A3 and so on.
Private Sub TextBox1_Change ()
Dim R As Range
Dim S As String
Set R = Sheet1.Range("A 1:B10")
S = MyForm.Textbox1 .Value
R.Value = S
End Sub
Rather than having the range as A1 to B10 I'd like the text to populate in a range such as Column A and each entry from the user appear in cell A1, then A2, then A3 and so on.
Comment