Hi, I am new here and have just joined , I am working on a project in excell 2007 and have created a user form but when I run it it shows and then after I add date and click submit it brings back an error sayng
run-time error '424'; Object Required
then when I click on the debug it highlights the first line of code.
Here is my code
Private Sub CommandButton1_Click()
eRow = PupilDetailsDB.Cells(Rows.Count, 1).End(x1Up).Offset(1, 0).Row1
Cells(eRow, 1) = TextBox1.Text
Cells(eRow, 2) = TextBox2.Text
Cells(eRow, 3) = TextBox3.Text
Cells(eRow, 4) = TextBox4.Text
Cells(eRow, 5) = TextBox5.Text
Cells(eRow, 6) = TextBox6.Text
Cells(eRow, 7) = TextBox7.Text
Cells(eRow, 8) = TextBox8.Text
Cells(eRow, 9) = TextBox9.Text
Cells(eRow, 10) = TextBox10.Text
Cells(eRow, 11) = TextBox11.Text
End Sub
This is the first time I have used this form and still learning,
Any help would be great thanks.
Bookmarks