cyrous0425
New Member
- Joined
- May 30, 2018
- Messages
- 31
Good day guys. My problem is every time I run the macro the data is always inserted at the end of my table. Is there a way to insert it always at first then move down? Here's the code by the way:
Cy
Thanks
Code:
Private Sub Submit_Btm_Click()
Dim n As Long
With Sheets("Record")
n = .Range("B:B").Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row + 1
.Cells(n, "C") = TextBox1.Value
.Cells(n, "J") = CDate(TextBox2.Value)
.Cells(n, "K") = TextBox3.Value
.Cells(n, "L") = TextBox4.Value
End With
End Sub
Cy
Thanks