Without seeing your workbook and knowing where you are storing values, how about this sample. Place the code behind the form.
Private Sub cmbAdd_Click()
'next empty cell in column A
Set c = Range("A65536").End(xlUp).Offset(1)
Application.ScreenUpdating = False 'speed up, hide task
'write userform entries to database
With Me
c.Value = .TextBox1.Value
c.Offset(1).Value = .TextBox2.Value
c.Offset(2).Value = .TextBox3.Value
c.Offset(3).Value = .TextBox4.Value
'clear the form
ClearControls
End With
Application.ScreenUpdating = True
End Sub
Bookmarks