Try this.
![]()
Private Sub CommandButton1_Click() Set rngInput = Cells(Rows.Count, 2).End(xlUp).Offset(1, 0) With rngInput .Value = TextBox1.Text .Offset(,1) = Textbox2.Text .Offset(,2) = Textbox3.Text .Offset(,3) = Textbox4.Text End With End Sub
Try this.
![]()
Private Sub CommandButton1_Click() Set rngInput = Cells(Rows.Count, 2).End(xlUp).Offset(1, 0) With rngInput .Value = TextBox1.Text .Offset(,1) = Textbox2.Text .Offset(,2) = Textbox3.Text .Offset(,3) = Textbox4.Text End With End Sub
If posting code please use code tags, see here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks