Hello everyone,
Wondering if someone can help me out here. I know very little about vba. I am trying to capture data from a UserForm into an excel spreadsheet. But every time I run the code I get this code: Run-Time Error '424' object required. I have excel 2007
Here is the code I'm trying to run
Private Sub CommandButton1_Click()
eRow = CheckingCal.Cells(Rows.Count, 1).End(x1up).Offest(1, 0).Row
Cells(eRow, 1) = TextBox1.Text
Cells(eRow, 3) = TextBox2.Text
Cells(eRow, 4) = TextBox3.Text
Cells(eRow, 5) = TextBox4.Text
End Sub
Private Sub CommandButton2_Click()
Unload Me
End Sub
Thank you
Wondering if someone can help me out here. I know very little about vba. I am trying to capture data from a UserForm into an excel spreadsheet. But every time I run the code I get this code: Run-Time Error '424' object required. I have excel 2007
Here is the code I'm trying to run
Private Sub CommandButton1_Click()
eRow = CheckingCal.Cells(Rows.Count, 1).End(x1up).Offest(1, 0).Row
Cells(eRow, 1) = TextBox1.Text
Cells(eRow, 3) = TextBox2.Text
Cells(eRow, 4) = TextBox3.Text
Cells(eRow, 5) = TextBox4.Text
End Sub
Private Sub CommandButton2_Click()
Unload Me
End Sub
Thank you